Quote:
Originally Posted by filburt1
You need to use == or that will return true every time.
|
i always forget that for some reason...
Quote:
Originally Posted by filburt1
Finally this is easier:
PHP Code:
if (strpos($_SERVER['PHP_SELF'], "filename.php" ) != false))
{
dowhatever();
}
|
I find it easier to use the full path, seeing as for me it's quite short
Quote:
Originally Posted by filburt1
Or use PAPI if you want to be really simple.
|
I don't like PAPI, one of my other admins would probably delete all of it, and i just think it's too long...