![]() |
need little php help
i have a website with a head part (logo etc) and a navigation on the left and the main stuff in the center.
i want to have the head + navigation saved somewhere and add it to every page automaticly. that will make it alot easiert to change the navigation later. i don't want to edit 1000 html files. can anybody help me there? if so, email me to [email protected] or post here! thanks! |
make individual head and menu files call with ssi perhaps?
|
will do that if you tell me how :)
|
Save your header as header.html and your navigation as nav.html
Then you add this where your header is supposed to be: < ? include("header.html") ? > and this where your navigation is supposed to be: < ? include("nav.html") ? > (Delete the space inbetween < and ?) |
|
<.? include("file.txt"); ?.>
file.txt contains ur html |
Quote:
|
can you run SSI and PHP on the same page?
|
Quote:
< ? include("nav.html"); ? > |
duh, you can't... unless i guess you include a php file in the ssi... then that might work. hmm...
|
the include is a php function :)
|
so yes you can include php in it. it will be interperate the php thats in the include.
|
i use the php thing now and it works exellent!
gfy at its best! took not even 5 minutes to solve my problem! you guys rock :thumbsup |
i can help... hit me up 13605110
|
Quote:
|
Quote:
ahh... ok, i thought php used something else :) i still don't do a lot of php :) |
All times are GMT -7. The time now is 09:25 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123