SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    May 2005
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    $_SERVER Problem

    I cant seem to find out a way to fix my flash to php problem
    I got a couple ideas from my last thread..

    1. $_SERVER['HTTP_REFERER'] == $_SERVER['PHP_SELF']
    2. $_SERVER['HTTP_REFERER'] == $mydomain
    3. $_SERVER['HTTP_REFERER'] == $myservername

    inside these i am putting my whole php script and the after that i'm writing

    else {
    exit;
    }

    Is that right? Because it doesn' compile when I do any of them

  2. #2
    get into it! bigduke's Avatar
    Join Date
    May 2004
    Location
    Australia
    Posts
    847
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    $_SERVER['HTTP_REFERER'] == $_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];

    try that. Also, the referer will be the same as the current script only in case of a loopback.


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
  •