SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2001
    Location
    aaaa
    Posts
    84
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    getting the current url

    My script is in
    http://aaa.com/aaa/aaa.php

    how do I get the http://aaa.com/aaa/aaa.php through php as
    $PHP_SELF can only get aaa.php

    thanks

  2. #2
    SitePoint Guru
    Join Date
    Jun 2001
    Location
    Australia
    Posts
    676
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    /aaa/$_SERVER['PHP_SELF']

  3. #3
    No. Phil.Roberts's Avatar
    Join Date
    May 2001
    Location
    Nottingham, UK
    Posts
    1,142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    $_server['request_uri']


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
  •