SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 1999
    Location
    Singapore
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello. Is there a way you can get a php script to "grab" the url that page is on? Thanks. I need it for a survey script I'm messing around with.
    Adolescent Adulthood - Learn All ABout Flirting, Dating And Dumping.

  2. #2
    SitePoint Wizard silver trophy Karl's Avatar
    Join Date
    Jul 1999
    Location
    Derbyshire, UK
    Posts
    4,411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try:

    $page = getenv( 'SERVER_NAME' ).getenv( 'REQUEST_URI' );
    Karl Austin :: Profile :: KDA Web Services Ltd.
    Business Web Hosting :: Managed Dedicated Hosting
    Call 0800 542 9764 today and ask how we can help your business grow.


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
  •