Re: [PHP] Syntax Error - This is WEIRD!

2004-01-20 Thread Nick Wilson
* and then Dagfinn Reiersøl declared Yes your right, that?s exactly the problem. I didn?t even realize he was doing that. By including the PHP file via HTTP, you are including the OUTPUT of the PHP file, not the actual PHP file itself. e.g. by including a file with the following

[PHP] Syntax Error - This is WEIRD!

2004-01-16 Thread Nick Wilson
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 ;-) -- Nick W -- PHP General Mailing List

Re: [PHP] Syntax Error - This is WEIRD!

2004-01-16 Thread Richard Davey
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

Re: [PHP] Syntax Error - This is WEIRD!

2004-01-16 Thread Nick Wilson
* 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

[PHP] Syntax Error - This is WEIRD!

2004-01-16 Thread Donald Tyler
- From: Nick Wilson [mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 8:17 AM To: php-general Subject: [PHP] Syntax Error - This is WEIRD! 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

RE: [PHP] Syntax Error - This is WEIRD!

2004-01-16 Thread Jeremy
Did the script accidently get saved in MS-DOS text format? -Original Message- From: Donald Tyler [mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 8:53 AM To: [EMAIL PROTECTED] Subject: [PHP] Syntax Error - This is WEIRD! There could be something you're not seeing and assuming

Re: [PHP] Syntax Error - This is WEIRD!

2004-01-16 Thread Dagfinn Reiersøl
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

RE: [PHP] Syntax Error - This is WEIRD!

2004-01-16 Thread Donald Tyler
be including the word Hello as PHP code, which is obviously going to cause a syntax error. -Original Message- From: Dagfinn Reiersøl [mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 10:18 AM To: PHP General Subject: Re: [PHP] Syntax Error - This is WEIRD! Nick Wilson wrote

Re: [PHP] Syntax Error - This is WEIRD!

2004-01-16 Thread Dagfinn Reiersl
:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 10:18 AM To: PHP General Subject: Re: [PHP] Syntax Error - This is WEIRD! 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

Re: [PHP] Syntax Error - This is WEIRD!

2004-01-16 Thread Jason Wong
On Saturday 17 January 2004 01:50, Dagfinn Reiersl wrote: Yes. I read the manual which provides no clear explanation (I suspect that whoever wrote it didn't actually know how it works). So I decided to test it. It does exactly what you say it does. I made an include file like this: In

RE: [PHP] Syntax Error - This is WEIRD!

2004-01-16 Thread Donald Tyler
: Dagfinn Reiersøl [mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 11:50 AM To: PHP General Subject: Re: [PHP] Syntax Error - This is WEIRD! Donald Tyler wrote: Yes your right, that’s exactly the problem. I didn’t even realize he was doing that. By including the PHP file via HTTP, you

Re: [PHP] Syntax Error - This is WEIRD!

2004-01-16 Thread Dagfinn Reiers?l
Jason Wong wrote: On Saturday 17 January 2004 01:50, Dagfinn Reiersl wrote: Yes. I read the manual which provides no clear explanation (I suspect that whoever wrote it didn't actually know how it works). So I decided to test it. It does exactly what you say it does. I made an include file

Re: [PHP] Syntax Error - This is WEIRD!

2004-01-16 Thread Dagfinn Reiersøl
Donald Tyler wrote: Yes that is true. But I would strongly recommend against doing that. You should never include anything over HTTP. Its extremely messy, 100% insecure and just a very very bad idea. My spontaneous reaction is to agree with you. On the other hand, are SOAP or XML-RPC over