Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- strange PHP_SELF behavior
May 9, 2005, 1:39 pm
rate this thread
I am migrating a self-made CMS app from one linux server to another and
i am getting very strange PHP_SELF behavior on the new server.
I hoe someone will be able to help me!
This app uses SEF URLs like http://domain.com/index.php/title/4 / (4
being the id)
When i use PHP_SELF in all the server but the new one i get as an
When i use it on the new server, i get "/title/4/"!!!!!!!
I am at a loss here. What could be triggering such a change? What
parameter should i change in the new server's config???
For info purposes, i'll attach the PHPInfo for both servers: the
working one and the new, not working one:
NOT working server:
http://new.microcar.es/phpinfo.php (PHP v4.3.11, Apache 1.3)
http://www.microcar.es/phpinfo.php (PHP v4.3.10, Apache 2.0)
Hint: You could try http://new.microcar.es/phpinfo.php/title/4 / and see
the result for yourself.
last info: i tried under another 1.3 server and it works well.
Re: strange PHP_SELF behavior
When the PHP install happened last was the zend optimizer reinstalled on
the new server? It is known to cause problems if it is not upgraded
after each php install.
That all I could really see. Although using $_SERVER['PHP_SELF'] isn't
always going to be exactly accurate. If you take a peak at the
REQUEST_URI maybe that is what you are looking for :)
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum