RE: [PHP] include() error

From: Date: Sun, 27 Aug 2000 20:19:24 +0000
Subject: RE: [PHP] include() error
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-13864@lists.php.net to get a copy of this message
PHP List writes: > >it looks like you are placing a whole separate <html></html> within your > >document...that isn't legal, but it's funny that PHP would catch it and not > >let you... > > > >try including a file that just has a <p></p>. > > Nope...that didn't work either. It is really weird. I have had php working > correctly with include() statements on a different server without any > problems. I just can't figure it out... > > Scott No, it wouldn't/shouldn't matter. PHP couldn't care less whether the output is valid HTML; it's all just text. If there was invalid PHP code in the called file, it would matter (assuming the include()d file is not being executed as PHP on the remote end). In the code above the include() statement (if there is any), are there any open braces or quotes? That tends to cause parse errors which show up after the last line of the file, which seems to be what you're getting. -- +----------------------------------------------------------------+ |Torben Wilson <torben@php.net> Netmill iTech| |http://www.coastnet.com/~torben http://www.netmill.fi| |Ph: 1 250 383-9735 torben@netmill.fi| +----------------------------------------------------------------+

« previous php.general (#13864) next »