Jump to content

if page = something.php


Lessur

Recommended Posts

There is a variable called $_SERVER['PHP_SELF'] that gets the current script location.  Be warned, this will return very strange results on shared hosting.  It gives something completely off base on my shared hosting.

EDIT: What does 'basename' do?
EDIT EDIT: php.net/basename shed some light on this, it fixes the problem I mentioned.  Silly me.  Sorry about that.
Link to comment
https://forums.phpfreaks.com/topic/15526-if-page-somethingphp/#findComment-63057
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.