Re: [PHP-WIN] including an HTML file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux