1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[$5] I need to fix a php error (3 lines code)

Discussion in 'PHP & Perl' started by BigTroll, Nov 7, 2015.

  1. BigTroll

    BigTroll Jr. VIP Jr. VIP

    Joined:
    Oct 15, 2014
    Messages:
    1,895
    Likes Received:
    734
    Occupation:
    CPA
    Location:
    ROMANIA
    PM me your skype..thanks

    [07-Nov-2015 09:40:50 America/New_York] PHP Notice: Undefined index: HTTP_REFERER in /home/plmfmm/public_html/a/z/4/index.php on line 1
    [07-Nov-2015 09:40:50 America/New_York] PHP Notice: Undefined index: HTTP_X_FORWARDED_FOR in /home/plmfmm/public_html/a/z/4/index.php on line 1
    [07-Nov-2015 09:40:50 America/New_York] PHP Notice: Undefined index: cl in /home/plmfmm/public_html/a/z/4/index.php on line 1
    [07-Nov-2015 09:40:50 America/New_York] PHP Notice: Undefined offset: 2 in /home/plmfmm/public_html/a/z/4/index.php on line 1
    [07-Nov-2015 09:41:27 America/New_York] PHP Notice: Undefined index: HTTP_X_FORWARDED_FOR in /home/plmfmm/public_html/a/z/4/index.php on line 1
    [07-Nov-2015 09:41:27 America/New_York] PHP Notice: Undefined index: cl in /home/plmfmm/public_html/a/z/4/index.php on line 1
    [07-Nov-2015 09:41:28 America/New_York] PHP Notice: Undefined offset: 2 in /home/plmfmm/public_html/a/z/4/index.php on line 1
    [07-Nov-2015 09:52:13 America/New_York] PHP Notice: Undefined index: HTTP_REFERER in /home/plmfmm/public_html/a/z/4/index.php on line 1
    [07-Nov-2015 09:52:13 America/New_York] PHP Notice: Undefined index: HTTP_X_FORWARDED_FOR in /home/plmfmm/public_html/a/z/4/index.php on line 1
    [07-Nov-2015 09:52:13 America/New_York] PHP Notice: Undefined index: cl in /home/plmfmm/public_html/a/z/4/index.php on line 1
    [07-Nov-2015 09:52:13 America/New_York] PHP Notice: Undefined offset: 2 in /home/plmfmm/public_html/a/z/4/index.php on line 1
    [07-Nov-2015 09:55:00 America/New_York] PHP Notice: Undefined index: HTTP_X_FORWARDED_FOR in /home/plmfmm/public_html/a/z/4/index.php on line 1
    [07-Nov-2015 09:55:00 America/New_York] PHP Notice: Undefined index: cl in /home/plmfmm/public_html/a/z/4/index.php on line 1
    [07-Nov-2015 09:55:00 America/New_York] PHP Notice: Undefined offset: 2 in /home/plmfmm/public_html/a/z/4/index.php on line 1
     
  2. Javivi

    Javivi Newbie

    Joined:
    Jan 8, 2011
    Messages:
    16
    Likes Received:
    2
    PM me yours, I can't send pms yet.
     
  3. BigTroll

    BigTroll Jr. VIP Jr. VIP

    Joined:
    Oct 15, 2014
    Messages:
    1,895
    Likes Received:
    734
    Occupation:
    CPA
    Location:
    ROMANIA
    pm sent .
     
  4. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    974
    Likes Received:
    680
    Occupation:
    Web/Bot Developer
    It appears that your $_SERVER['HTTP_REFERER'] or $_SERVER['HTTP_X_FORWARDED_FOR'] vars are not set.

    You can simply implement something like the following to verify:
    Code:
    $http_referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : null);
    $http_x_forwarded_for = (isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : null);
    
     
  5. MerchantHubs

    MerchantHubs Newbie

    Joined:
    Nov 7, 2015
    Messages:
    33
    Likes Received:
    21
    Location:
    Home
    Home Page:
    Send me the index.php file. I'll look into it.
     
  6. Javivi

    Javivi Newbie

    Joined:
    Jan 8, 2011
    Messages:
    16
    Likes Received:
    2
    Error is fixed already, I suggest you close this BigTroll