hey, is there a way where i update 1 html page have that code appear in a table on all my pages. example: i have a menu on all my pages, when i want to add another option i want to chnge 1 page and have them all update. does that make sense? would i do it with php?
You can use the includes directive in php to include a seperate html/text file into the page you are outputting. More often known as SSI (server side includes).
Hello, I am no PHP expert, but I have a few sites that use includes for the reson you need them. Basicly you need to take your current HTML file and turn them into .inc files. You will need .inc files for each part of your site (ie. top navigation, side bar, main body etc.). The inc files will be the HTML, and you will be able to change the ones common on your site globally. The include command: <? include("filename.inc") ?> Some resources: http://www.hardcoder.com/scripting/php/include_files.php http://www.php.net/include/ http://www.developerfusion.co.uk/show/1826/
It should be noted that include is not a function, so it doesn't need paranthesis. It's also a good practice to open php with <?php rather than just <?. And most people don't use .inc in the web accessible directories because the contents can be read by anyone (instead, keep it inaccessible, or rename it with a .php extension and adjust the code/source accordingly). By default, .php files are output as html, so you can have a regular html file with no php and call it blah.php without a problem (including files to be included).
Hi..ih82lose , Gordaen & all guys Greetings guys... may i know if my site use FLASH or swif in my main index page; can i also use the .inc files also?? Thanks in advance...