I have PHP 4.3.11 installed on Windows 2k Server. I copied the ad network 258 file to my server and when called I get this error: http://www.nrgsoft.com/ad_network_258.php Notice: Undefined variable: string in c:\inetpub\wwwroot\nrgsoft\ad_network_258.php on line 10 Notice: Undefined index: SERVER_ADDR in c:\inetpub\wwwroot\nrgsoft\ad_network_258.php on line 79 Notice: Undefined index: SERVER_ADDR in c:\inetpub\wwwroot\nrgsoft\ad_network_258.php on line 79 Notice: Undefined index: SERVER_ADDR in c:\inetpub\wwwroot\nrgsoft\ad_network_258.php on line 79 I have the .txt file setup properly with write permissions. Line 10 in the php file looks good to me. Any ideas? thanks! andy
I think the $_SERVER variable comes mostly from IIS... so I'm guessing IIS isn't giving the user's IP address to PHP for whatever reason.
Some configurations of php require array variables to be initialized before use. $variable = array(); Is suggested.
I think the problem is with Server. PHP need Apache server for run because IIS haven't configure PHP definition file. And Apache have PHP configuration file. For run PHP on window you should firstly install PHP configuration file on window server and in IIS set the path for this file. Then PHP will run on windows. Hope it will help you.