By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,729 Members | 1,339 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,729 IT Pros & Developers. It's quick & easy.

strange PHP_SELF behavior

P: n/a

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 (4
being the id)

When i use PHP_SELF in all the server but the new one i get as an
answer "/index.php/title/4/".

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: (PHP v4.3.11, Apache 1.3)

working server: (PHP v4.3.10, Apache 2.0)

Hint: You could try and see
the result for yourself.

last info: i tried under another 1.3 server and it works well.

Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies

P: n/a
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.
last info: i tried under another 1.3 server and it works well.

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 :)

Jul 17 '05 #2

P: n/a
thx for the tip.
I am looking at getting the full local URL like /index.php/title/4/ and
REQUEST_URL does not give me that! :)

But i'll ask my ISP to reinstall everything and i'll keep you posted.
Thx again

Jul 17 '05 #3

P: n/a
i had it reinstalled....

..... to no avail... :(

Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.