Re: Syntax Error -> This is WEIRD!

From: Date: Fri, 16 Jan 2004 16:18:04 +0000
Subject: Re: Syntax Error -> This is WEIRD!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-174840@lists.php.net to get a copy of this message
Nick Wilson wrote:
if a script calls antohter like 'include('http://site.com/index.php'); Why would I get a syntax error on line 1 of index.php when it looks like this: <?php // line one above this one What's the deal there? Many thanks for any insight ;-) I've never tried to do an include via HTTP, so maybe I'm clueless, but
it occurs to me that it might be a good idea to try doing a plain old file include, using exactly the same file. I have the feeling it would be interesting to know whether that would work or not.

« previous php.general (#174840) next »