SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: $http_referer Q

  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2004
    Location
    at home
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    $http_referer Q

    How can I grab the filename portion of the $HTTP_REFERER variable?

    say the referrer was

    http://www.obls.com/drawform_step1.php

    How can I grab the drawform_step1.php part? I could explode the string, but how do I get the filename and knwo that is it?

  2. #2
    SitePoint Guru aamonkey's Avatar
    Join Date
    Sep 2004
    Location
    kansas
    Posts
    953
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    check out pathinfo()

  3. #3
    SitePoint Wizard triexa's Avatar
    Join Date
    Dec 2002
    Location
    Canada
    Posts
    2,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I suggest basename()
    AskItOnline.com - Need answers? Ask it online.
    Create powerful online surveys with ease in minutes!
    Sign up for your FREE account today!
    Follow us on Twitter


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
  •