Results 1 to 6 of 6

Thread: checking

  1. #1

    Thread Starter
    Hyperactive Member New to VB 6's Avatar
    Join Date
    Apr 2002
    Posts
    362

    Question checking

    I looked in the PHP manual but I could not find anything about checking to see if you reached a page from a certain url.
    if it is in the manual then I don't know what to look under.

    I there any way to check if a page has been visited from a specific URL.

    i.e.

    if url = "http://someurl.com/thispage.php

    then

    some output

    else

    "You reached this page illeagaly please go back"
    [VBCODE]
    Option Explicit
    Dim XXX As Porn
    Dim Wife As Nag

    Private Sub *****_Resize()
    On Error Resume Next
    Get Viagra
    End Sub
    [/VBCODE]

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Code:
    if ($_SERVER['HTTP_REFERER'] == 'http://someurl.com/thispage.php') {
    
    }
    But, as the manual says:

    The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.
    And no. There is no alternative.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3
    New Member
    Join Date
    Sep 2002
    Posts
    14
    Also u can read good manual from php.net - they have one at PDF format

    Sincerely,
    Sergey Booyny
    AlarIT programmer
    http://www.AlarIT.com

  4. #4
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by serg4444
    Also u can read good manual from php.net - they have one at PDF format

    Sincerely,
    Sergey Booyny
    AlarIT programmer
    http://www.AlarIT.com
    ...
    My evil laugh has a squeak in it.

    kristopherwilson.com

  5. #5
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    i've seen him post that a few times now..

  6. #6
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Same here.
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

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



Click Here to Expand Forum to Full Width