faqts : Computers : Programming : Languages : PHP : kms : General

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

6 of 74 people (8%) answered Yes
Recently 0 of 10 people (0%) answered Yes

Entry

How can I stop PHP from parsing the rest of a script?
How can I safely display code entered by a user?

Feb 8th, 2000 05:01
Nathan Wallace, Rasmus Lerdorf


I have done this before.  Just do something like this:

<? 
   ...
   Dynamic PHP header code
   ...
   ReadFile("page_content.txt");
   ...
   Dynamic PHP footer code
   ...
?>

So instead of appending message content to a PHP file, have the PHP read
the content itself.