SitePoint Sponsor

User Tag List

Results 1 to 10 of 10

Threaded View

  1. #1
    SitePoint Member lstice's Avatar
    Join Date
    Mar 2003
    0 Post(s)
    0 Thread(s)

    $PHP_SELF working funny

    I'm using this line in a script:
    PHP Code:
     printf("<a href=""\"%s\">Add a record</a><br /><br />",$PHP_SELF); 
    (note that Sitepoint is adding 2 quotes in my line (href=""). If I remove them when I edit this message they come back. I can't get rid of them, even if I uncheck Automatically parse URLs.)

    but when I click on the resulting line, it doesn't reload the current page. PHP_SELF is defined as the domain and the directory which contains the current page, but not the current page.

    i.e. it should be defined as http://localhost/lh/dhr.php, since that is the current page, but it is actually defined as
    http://localhost/lh. Why is that?
    Last edited by lstice; May 19, 2003 at 17:27.


Posting Permissions

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