Msg#: 3162338 posted 12:10 pm on Nov 20, 2006 (gmt 0)
I currently write contents to a file using something like this addpage.php :- $headpart = "<?php require(\"../homeincludes/config.php\");?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />\n";
Problem is this becomes a pain when I have to make any global changes as I have to edit the source code for the script.
Question: is there anyway that I can place this code within a txt file and just open it, read it then write it to the page. Example: head.txt body.txt footer.txt This would make it easier to change then by simply opening the txt file and making the changes.