If you are running a site off of your computer, go to PHP.net and download the installer. Install PHP onto you computer.
Restart.
Then configure your IIS starting page to index.php.
Open your index.html in notepad, Save-As index.php .
Then, lets say your navigation bar is in a table, simple take that whole navigation script, from <table> to </table> and place it in a .txt or .html or anything. Then, in your index.php, where that table information that you put in the .txt, put this script:
PHP Code:
<?php require("pathto/nav.txt"); ?>
Save the document and there you go. any questions, email drip913@hotmail.com
Example Before:
HTML Code:
<html>
<body>
<table border="1"><tr>
<td align="center">
Navigation
</td></tr>
<tr>
<td>
-- Home<br>
-- Links<br>
-- Etc...
</td></tr></table>
</body>
</html>
Lets say thats how your nav bar looks, copy all that, from <table> to </table> and save it into a .txt, delete all of that that you copied, and replace it so it should look like this:
PHP Code:
<html>
<body>
<?php require("pathto/nav.txt"); ?>
</body>
</html>
save that as .php and use the .txt to edit its contents, simple and very effective, i use... extensively.
__________________
Please login or register to view this content. Registration is FREE
Photoshop, HTML, CSS, PHP, and ASP Tutorials for Beginner to Advanced users.
Looking for expirienced Photoshop, HTML, CSS, PHP, or ASP programmers to help run a tutorial site. Contact me.
Last edited by Drip; 08-14-2004 at 05:41 PM..
|