SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Jun 2002
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question $PHP_SELF doesnt work

    Im am just learning PHP and for some reason on my server the $PHP_SELF function does not work. I have tried it on other servers and it works fine. I am in desprate need for this, Please, if you know a way to fix this/work around this please resond.

    -Thank you

  2. #2
    SitePoint Addict psychedelic's Avatar
    Join Date
    Feb 2002
    Location
    Boston
    Posts
    284
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think newer versions of PHP use this:

    PHP Code:
    <?php
        
    echo "$_SERVER['PHP_SELF']";
    ?>
    The Internet is prettier on a Mac.

  3. #3
    Ribbit... Eric.Coleman's Avatar
    Join Date
    Jun 2001
    Location
    In your basement
    Posts
    1,268
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You only need

    PHP Code:
    <?php
         
    echo $_SERVER['PHP_SELF'];
    ?>
    No need for those extra quotes
    Eric Coleman
    We're consentratin' on fallin' apart
    We were contenders, now throwin' the fight
    I just wanna believe, I just wanna believe in us

  4. #4
    SitePoint Member
    Join Date
    Jun 2002
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thanks!

    Thanks, works great

  5. #5
    SitePoint Member
    Join Date
    Jun 2002
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you guys are so fast to respond. i just put that up like 30 seconds ago!

  6. #6
    SitePoint Evangelist ckchin's Avatar
    Join Date
    Mar 2002
    Location
    msia
    Posts
    487
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is because SitePointForums members have their eyes staring at the computer screen.

  7. #7
    Shiver me timbers!! anthony_irl's Avatar
    Join Date
    Aug 1999
    Location
    Dublin, Ireland
    Posts
    495
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by ckchin
    This is because SitePointForums members have their eyes staring at the computer screen.
    Yeah we don't even blink!
    Anthony - How's tings?

    24 hours in a day, 24 beers in a case. Coincidence? I think not.
    Contact me by: PM Email NEW! Carrier Pigeon


Bookmarks

Posting Permissions

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