Re: Syntax Error -> This is WEIRD!

From: Date: Fri, 16 Jan 2004 14:39:26 +0000
Subject: Re: Syntax Error -> This is WEIRD!
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-174804@lists.php.net to get a copy of this message
* and then Richard Davey declared.... > Hello Nick, > > Friday, January 16, 2004, 2:16:43 PM, you wrote: > > NW> if a script calls antohter like > NW> 'include('http://site.com/index.php'); > > NW> Why would I get a syntax error on line 1 of index.php when it looks like > NW> this: > > NW> <?php > NW> // line one above this one > > NW> What's the deal there? > > Say you've got 2 scripts. a.php and b.php > > If in a.php you have the line: > > include('http://www.whatever.com/b.php'); > > Then you have two possible causes for the error. > > 1) a.php errors somewhere (i.e. in your code you had a ' infront > of the include function for some reason). > > 2) b.php has an error in it which is being echo'd out by a.php Problem is, its a well know and well tested script. Is there anything im my settings that could cause this? THanks! -- Nick W

« previous php.general (#174804) next »