Very Happy but... SSI & QUERY_STRING?

 
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI
View previous topic :: View next topic  
Author Message
Jason Silver
-


Joined: 05 Apr 2004
Posts: 3

PostPosted: Mon Apr 05, 2004 4:01 am    Post subject: Very Happy but... SSI & QUERY_STRING? Reply with quote

How do I pass Query string variables to my CGI (Perl) script from SSI pages?

ie:
http://www.mysite.com/folder/?variable=1&another=what

The script is not passed the variables 'variable' and 'another.'

What can I do to fix this?

~Jason Silver
CrookedBush.com
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Apr 05, 2004 2:38 pm    Post subject: Re: Very Happy but... SSI & QUERY_STRING? Reply with quote

Jason Silver,

Do you want to pass the QUERY_STRING an SSI page gets to a CGI include directive?
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Jason Silver
-


Joined: 05 Apr 2004
Posts: 3

PostPosted: Mon Apr 05, 2004 3:57 pm    Post subject: Yes Reply with quote

Yes, I want my included script to be able to have variables passed to it via the query string.

~Jason
Back to top View user's profile Send private message
Omar G
-


Joined: 21 Mar 2003
Posts: 34
Location: Honolulu, Hawai'i

PostPosted: Wed Apr 07, 2004 11:57 am    Post subject: Reply with quote

You can do it like this:

myPage.shtml/?coolness

Then use $QUERY_STRING, which will now hold the value "coolness". SSI does not provide a way of accessing url vars (?x=coolness). CGI scripts parse the $QUERY_STRING and break it up into arrays. I have made a url rewriting script which does this, but it uses Apache-specific modules (mod_rewrite and mod_env). Perhaps this can be added to Abyss' wishlist of To Do's...

- OmarG
Back to top View user's profile Send private message
Jason Silver
-


Joined: 05 Apr 2004
Posts: 3

PostPosted: Wed Apr 07, 2004 1:38 pm    Post subject: Yes, I Know, but... Reply with quote

I am a Perl programmer-- I know all about this. That's why the title of my first post.

QUERY_STRING is not being sent through the environment variables.

I cycled through the entire environment hash and printed it from a SSI page. There were no variables which displayed the information after the question mark.

So back to the beginning. Anyone know what's wrong with the web server?

Jason Silver
Programmer at Intelliscript.net
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Apr 07, 2004 2:28 pm    Post subject: Re: Yes, I Know, but... Reply with quote

Jason Silver,

Can you please post (or send to support@aprelium.com) the SSI file you want to have and tell us where is the problem exactly?
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
mayfair
-


Joined: 10 Sep 2004
Posts: 1

PostPosted: Tue Mar 15, 2005 5:20 am    Post subject: same problem here. Reply with quote

Hi, after i upgraded to the new version i noticed that some of my scripts that worked fine before don't work right anymore, i noticed that all of them using http://site.net/file.cgi?variable, aren't pasing any parameter after the ?, so they only execute the file like it was just http://site.net/file.cgi
so the new version is completely ignoring any parameters after the ? sign.

is there any option i need to set up to fix it?
ain't this a problem related with the new multi virtual hosting supported?



note: i has been using version 1.2.3.0 without any problems until now that i upgraded.
Back to top View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1295

PostPosted: Tue Mar 15, 2005 12:12 pm    Post subject: Re: same problem here. Reply with quote

mayfair,

Can you please send to support@aprelium.com one of these scripts that doesn't work? Can you please send us also your configuration file?
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group