Re: [PHP] include require directive

2002-08-13 Thread James Green

On Tue, 2002-08-13 at 02:55, Huy wrote:
 But I do...
 
 If I left out the require statement all is well.. or I copy the whole
 content of the included file.. it works fine. The problem is the require
 statement.

Check the file for whitespace, anything outside ?..?php or
spaces/blank lines above your first ?php in any of your files.

James.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] include require directive

2002-08-13 Thread Huy

Thanks,

I thought I checked that already. Obviously, I use notepad in Win2000 to
edit the files, and save them as Unicode file, which Notepad put some
characters at the beginning of the file. Only when I use another editor was
I able to see those strange characters. After deleting them, the require
statement works fine. Again, thanks for the help. :)

James Green [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 On Tue, 2002-08-13 at 02:55, Huy wrote:
  But I do...
 
  If I left out the require statement all is well.. or I copy the
whole
  content of the included file.. it works fine. The problem is the require
  statement.

 Check the file for whitespace, anything outside ?..?php or
 spaces/blank lines above your first ?php in any of your files.

 James.





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] include require directive

2002-08-13 Thread Miles Thompson

Huy,

Use Editplus, or something similar, not Notepad. Costs $45 and makes your 
work *much* easier.

Miles


At 08:41 AM 8/13/2002 -0700, Huy wrote:
Thanks,

I thought I checked that already. Obviously, I use notepad in Win2000 to
edit the files, and save them as Unicode file, which Notepad put some
characters at the beginning of the file. Only when I use another editor was
I able to see those strange characters. After deleting them, the require
statement works fine. Again, thanks for the help. :)

James Green [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  On Tue, 2002-08-13 at 02:55, Huy wrote:
   But I do...
  
   If I left out the require statement all is well.. or I copy the
whole
   content of the included file.. it works fine. The problem is the require
   statement.
 
  Check the file for whitespace, anything outside ?..?php or
  spaces/blank lines above your first ?php in any of your files.
 
  James.
 
 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] include require directive

2002-08-12 Thread Huy

If I use either the include or require statement, PHP will generate some
lines in the browser. For example, I want the first line is Hello There..
echo (Hello There); but the line happens to be the third line after some
blank lines. So how do I turn that off??



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] include require directive

2002-08-12 Thread James Green

On Mon, 2002-08-12 at 22:14, Huy wrote:
 If I use either the include or require statement, PHP will generate some
 lines in the browser. For example, I want the first line is Hello There..
 echo (Hello There); but the line happens to be the third line after some
 blank lines. So how do I turn that off??

http://uk.php.net/manual/en/function.include.php

Enclose your included scripts in ?php ... ?

James



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] include require directive

2002-08-12 Thread Huy

But I do...

If I left out the require statement all is well.. or I copy the whole
content of the included file.. it works fine. The problem is the require
statement.

James Green [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 On Mon, 2002-08-12 at 22:14, Huy wrote:
  If I use either the include or require statement, PHP will generate some
  lines in the browser. For example, I want the first line is Hello
There..
  echo (Hello There); but the line happens to be the third line after
some
  blank lines. So how do I turn that off??

 http://uk.php.net/manual/en/function.include.php

 Enclose your included scripts in ?php ... ?

 James





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php