$PATH_INFO

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
quipious
-


Joined: 14 Nov 2002
Posts: 11

PostPosted: Sun Dec 08, 2002 8:51 am    Post subject: $PATH_INFO Reply with quote

Hmm... i dun surpose Abyss supports $PATH_INFO as an env variable like Apache does, does it?

Do help as i want my websites to be "search engine friendly"! :wink:
_________________
Quipious
Back to top View user's profile Send private message MSN Messenger
!Keys
-


Joined: 23 Nov 2002
Posts: 156
Location: Holland, Enschede

PostPosted: Sun Dec 08, 2002 10:33 am    Post subject: Reply with quote

You have to have php support on your server first. Then it probably still isnt correct, it should be $_SERVER[PATH_INFO] probably in the newest php(4.2.3) but i´m not asure, you can check it at the php.net website
_________________
!Keys || MwM^computerware
Back to top View user's profile Send private message MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Dec 08, 2002 1:25 pm    Post subject: Re: $PATH_INFO Reply with quote

quipious wrote:
Hmm... i dun surpose Abyss supports $PATH_INFO as an env variable like Apache does, does it?

Do help as i want my websites to be "search engine friendly"! :wink:

Yes, Abyss Web Server exports PATH_INFO variable and understands it. See our CGI chapter in the documentation about that topic.
But the CGI version PHP is known to have problems with scripts that use PATH_INFO. If you have a script named test.php: browsing http://yoursite/test.php is ok but browsing http://yoursite/test.php/extra/path/info will give you error 500 as CGI PHP tries to use the PATH_INFO to run another non-existing script.
This is not an Abyss Web Server isssue but a CGI PHP issue. If you use the same with Perl script it will run great.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
quipious
-


Joined: 14 Nov 2002
Posts: 11

PostPosted: Sun Dec 08, 2002 1:36 pm    Post subject: Re: $PATH_INFO Reply with quote

aprelium wrote:
quipious wrote:
Hmm... i dun surpose Abyss supports $PATH_INFO as an env variable like Apache does, does it?

Do help as i want my websites to be "search engine friendly"! :wink:

Yes, Abyss Web Server exports PATH_INFO variable and understands it. See our CGI chapter in the documentation about that topic.
But the CGI version PHP is known to have problems with scripts that use PATH_INFO. If you have a script named test.php: browsing http://yoursite/test.php is ok but browsing http://yoursite/test.php/extra/path/info will give you error 500 as CGI PHP tries to use the PATH_INFO to run another non-existing script.
This is not an Abyss Web Server isssue but a CGI PHP issue. If you use the same with Perl script it will run great.


Why is it then, that Apache is said to have no problems with this variable when parameters to the script are given in slashes, eg script.php/abc/xyz?

One other thing: You mention that only the CGI version of PHP has this problem... Is there a way to obtain another version that doesnt have this problem? I'm using Windows XP Pro.
_________________
Quipious
Back to top View user's profile Send private message MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Dec 08, 2002 1:56 pm    Post subject: Re: $PATH_INFO Reply with quote

quipious wrote:

Why is it then, that Apache is said to have no problems with this variable when parameters to the script are given in slashes, eg script.php/abc/xyz?

Abyss Web Server also has no problem with this variable. It is the CGI version of PHP that had a problem with it (after Abyss passes the good parameters to it.)

Quote:

One other thing: You mention that only the CGI version of PHP has this problem... Is there a way to obtain another version that doesnt have this problem? I'm using Windows XP Pro.

Apache seems to have no problem with that variable because most people run the special PHP version made for Apache which doesn't use CGI but uses a module.
We recommend asking the question on a PHP specific forum to have an answer to your question. May be there is a parameter, that when set, prevents that error from occuring.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
quipious
-


Joined: 14 Nov 2002
Posts: 11

PostPosted: Mon Dec 09, 2002 1:23 am    Post subject: Re: $PATH_INFO Reply with quote

aprelium wrote:

Apache seems to have no problem with that variable because most people run the special PHP version made for Apache which doesn't use CGI but uses a module.
We recommend asking the question on a PHP specific forum to have an answer to your question. May be there is a parameter, that when set, prevents that error from occuring.


Is there a server module designed for Abyss?
_________________
Quipious
Back to top View user's profile Send private message MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Dec 09, 2002 1:44 am    Post subject: Re: $PATH_INFO Reply with quote

quipious wrote:
aprelium wrote:

Apache seems to have no problem with that variable because most people run the special PHP version made for Apache which doesn't use CGI but uses a module.
We recommend asking the question on a PHP specific forum to have an answer to your question. May be there is a parameter, that when set, prevents that error from occuring.


Is there a server module designed for Abyss?

No, not right now. We are working on mading Abyss compatible with ISAPI which will allow users to use modules developed for Microsoft IIS servers with it. That will allow also the use of the PHP ISAPI module.

Have you searched for information about your issue on a PHP specialized site/forum/documentation? Since we aren't PHP experts, it would be interesting to search ask the question on how to enable $PATH_INFO correct processing in the CGI version of PHP.
We found that this is possible but only if you recompile PHP setting a special flag (too complicated.)
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
quipious
-


Joined: 14 Nov 2002
Posts: 11

PostPosted: Mon Dec 09, 2002 1:56 am    Post subject: Thanks Reply with quote

It works great now...

I have sent in a bug report and they responded within minutes...
1. Get the latest snapshot from snap.php.net
2. Get the stable release ver 4.3 (I was using 4.2.3)
3. Install it
4. Set the parser to php-cgi.exe and NOT php.exe

That's all.
Thanks for all your help. I really appreciate it. :wink:
_________________
Quipious
Back to top View user's profile Send private message MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Dec 09, 2002 2:02 am    Post subject: Re: Thanks Reply with quote

quipious wrote:
It works great now...

I have sent in a bug report and they responded within minutes...
1. Get the latest snapshot from snap.php.net
2. Get the stable release ver 4.3 (I was using 4.2.3)
3. Install it
4. Set the parser to php-cgi.exe and NOT php.exe

That's all.
Thanks for all your help. I really appreciate it. :wink:

Great... We will get that new version too :D
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP 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