Minor warnings...

Discussion in 'Co-op Advertising Network' started by sacx13, Jun 22, 2006.

  1. #1
    Hi,

    I installed some days ago the script for "Coop Advertising Network" (still pending :) ) and I get some warnings in my log from $_SERVER['PATH_INFO'] and $_SERVER['HTTPS'] :

    8: Undefined index: PATH_INFO
    File: /var/www/wt/ad_network_292.php
    Line: 78

    8: Undefined index: HTTPS
    File: /var/www/wt/ad_network_292.php
    Line: 97

    is possible in the future (on the next script version) to check this variables if are seted up ? (something like is_set($_SERVER['HTTPS']) )

    Regards
     
    sacx13, Jun 22, 2006 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Add this to the beginning of the ad network script:

    error_reporting(E_ALL & ~E_NOTICE);
    PHP:
     
    digitalpoint, Jun 23, 2006 IP