Re: including an HTML file

From: Date: Fri, 14 Jan 2005 18:41:58 +0000
Subject: Re: including an HTML file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-206401@lists.php.net to get a copy of this message
Hello Gaetano, Thursday, January 13, 2005, 5:53:04 PM, you wrote: >> So i must do all manually >> i write this [snip] >> where $corpo is a variable for the name of the file. >> if the file not existe the page have a blank body I don't know of another way to do what you asked, which was to include only the information contained between the <BODY> and </BODY> tags. You could put and else clause to your if(file_exist) which would include the contents of some other file if that condition happens. That file could just be some default content. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F Web Site <http://www.PCWize.com>

« previous php.general (#206401) next »