Quick bit of code I wrote to easily generate whatever kind of misc. page you might need to include on a landing site/regular site.
Made it as basic as possible so no one should have any trouble. The two php files are show.php and show_c.inc.php. show.php is the output, show_c.inc.php sets up the content. The page content is stored in flat file format in a folder called page_content. That folder has to contain whatever content you want to display for a page. Easiest way to explain would be an example.
For an about page:
1. Place about.txt in the page_content folder.
2. go to the url show.php?page=about *the parameter MUST match the file
Thats it. The show.php file is very simple since I assume everyone is going to want to "skin" it to match their existing template. I figured there's probably a few people will find this useful as well, so enjoy.
Made it as basic as possible so no one should have any trouble. The two php files are show.php and show_c.inc.php. show.php is the output, show_c.inc.php sets up the content. The page content is stored in flat file format in a folder called page_content. That folder has to contain whatever content you want to display for a page. Easiest way to explain would be an example.
For an about page:
1. Place about.txt in the page_content folder.
2. go to the url show.php?page=about *the parameter MUST match the file
Thats it. The show.php file is very simple since I assume everyone is going to want to "skin" it to match their existing template. I figured there's probably a few people will find this useful as well, so enjoy.