Get exclusive CAP network offers from top brands

View CAP Offers

Reply To: Includes for Easier Updates

[bsa_pro_ad_space id=2]
#654237
Anonymous
Inactive

I just transferred all my footer and navigation links for my new site into php last night:cool:

I used to have something like:

Link 1

Link 2

etc… with about 30 links. Every time I wanted to put on a new page I’d have to go through all 30 pages and edit each one. Very boring. Now I have

[PHP] include(“navigation.html”);
?>[/PHP]

in place of all the bulky links. Just copy+paste all the code for the links into a seperate file and call it whatever you like. But make sure you edit the above code so the file names are the same. Also, you have to save your webpages as .php.

I’m not entirely sure, but you might need to put this into your .htaccess.txt file:

RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html

A few people told me you do, a few said no. I just put it in anyway.