|
-
Sep 23rd, 2002, 08:35 AM
#1
Thread Starter
Addicted Member
Current page : any thought ?
Once again, more questions :
What's wrong with this code :
PHP 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 !
-
Sep 23rd, 2002, 12:13 PM
#2
Fanatic Member
Its $_SERVER['PHP_SELF'];
(brackets, not parathensis)
-
Sep 23rd, 2002, 12:45 PM
#3
Thread Starter
Addicted Member
Thanks !
Didn't notice...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|