On Tue, 2004-01-20 at 18:07, Justin French wrote:
> On Wednesday, January 21, 2004, at 05:11  AM, Ryan A wrote:
> 
> > Do I have to start and end the included files with <?php  ?>   ?
> 
> Did you try it?  Then you'd have your answer :)
> 
> Did you read http://www.php.net/include/ ?  Because all the examples 
> show what you need to know too.
> 
> Read the manual, and TRY THINGS before posting :)

Just an FYI that doesn't appear to be covered in the docs, but for which
I received confirmation on the internals list a couple of months ago,
you don't need to have the closing tag ?> if your included file doesn't
need to exit PHP mode. This is an undocumented (I think it's still
undocumented) feature and can prevent the accidental inclusion of
whitespace that can bugger headers :)

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

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

Reply via email to