PDA

Click to See Complete Forum and Search --> : Current page : any thought ?


eL_NiNo
Sep 23rd, 2002, 08:35 AM
Once again, more questions :

What's wrong with this code :


$strPage = $_SERVER("PHP_SELF"); /*** Error here ***/
$strScript;
if($strScript = strstr($strPage, '/'))
{
$strPage = $strScript;
};
return $strPage;


it gives me :

Notice: Array to string conversion in file.php on line X
Fatal error: Call to undefined function: array() in file.php on line X

Thanks in advance !

cpradio
Sep 23rd, 2002, 12:13 PM
Its $_SERVER['PHP_SELF'];

(brackets, not parathensis)

eL_NiNo
Sep 23rd, 2002, 12:45 PM
Thanks !
Didn't notice...