Results 1 to 3 of 3

Thread: Current page : any thought ?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2000
    Location
    Québec, Canada
    Posts
    212

    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 !
    Regards,

    El-Nino

  2. #2
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    Its $_SERVER['PHP_SELF'];

    (brackets, not parathensis)
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2000
    Location
    Québec, Canada
    Posts
    212
    Thanks !
    Didn't notice...
    Regards,

    El-Nino

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width