Please help - installation errors

Discussion in 'Co-op Advertising Network' started by GadgetMadness.com, Jan 24, 2005.

  1. #1
    Hello, I followed the installation instructions and am getting the following errors:

    Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/.rafferty/lunacy8m/gadgetmadness.com/ad_network.php on line 7

    Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/.rafferty/lunacy8m/gadgetmadness.com/ad_network.php on line 9

    Parse error: parse error, unexpected T_IF in /home/.rafferty/lunacy8m/gadgetmadness.com/ad_network.php on line 10

    I am using Movable Type 2.663. Please help, and thanks!

    http://www.gadgetmadness.com
     
    GadgetMadness.com, Jan 24, 2005 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
    Are you using the default (unaltered) ad_network.php file?
     
    digitalpoint, Jan 24, 2005 IP
  3. GadgetMadness.com

    GadgetMadness.com Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    No, I changed the background color. I took the include off my index but you can still see the errors here:

    http://www.gadgetmadness.com/ad_network.php

    Let me try the default and see if that makes a difference.
     
    GadgetMadness.com, Jan 24, 2005 IP
  4. GadgetMadness.com

    GadgetMadness.com Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I've changed the ad_network.php to the default, and the same error occurs.
     
    GadgetMadness.com, Jan 24, 2005 IP
  5. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #5
    You are running PHP 4.3.10, so your system shouldn't even need the file_get_contents function. Try deleting this from your script:
    
    	if (!function_exists('file_get_contents')) {
    		function file_get_contents($url) {
    			$handle = fopen($url, 'r');
    			$string = fread($handle, 4096000);
    			fclose($handle);
    			return $string;
    		}
    	}
    PHP:
     
    digitalpoint, Jan 24, 2005 IP
  6. GadgetMadness.com

    GadgetMadness.com Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It's working, thanks alot for your help. Normally I would be to embarrased to post this, but in the process of going 100% windows free and using TextEditor on my Powerbook I failed to force plain text for the file format. The file was being saved as rich text; forcing plain text fixed the problem I was having.

    So sorry to waste your time - thank you so much for your help!
     
    GadgetMadness.com, Jan 24, 2005 IP