SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot yuri's Avatar
    Join Date
    Oct 2001
    Location
    Just Round The Corner!
    Posts
    166
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question local page variable check

    hi all,

    now that i have found out how to do navigate using PHP. i was told to look for something that would perform a variable check to see if the link is local.

    i'm totally new to PHP so any help is much appreciated.

    chris

  2. #2
    ********* Callithumpian silver trophy freakysid's Avatar
    Join Date
    Jun 2000
    Location
    Sydney, Australia
    Posts
    3,798
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi - do you mean you want to check if the referrering page is in your site/domain?

    something like

    PHP Code:
    $referrer_is_local stristr$HTTP_REFERER'yourdomain.com'); 
    But be warned, I believe not all browsers send the referrer information. (Don't know which ones do/don't).

  3. #3
    SitePoint Zealot yuri's Avatar
    Join Date
    Oct 2001
    Location
    Just Round The Corner!
    Posts
    166
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up exactly

    no sorry. i wasnt clear. i want a script that will check to see if the link links to a page in my site and not another sites.

    i'll just check to see it it works. i'll do some reasearch into that.

    again thanks alot

    chris
    Last edited by yuri; Apr 8, 2002 at 10:13.


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
  •