![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Sep 2001
Location: Europe
Posts: 2,218
|
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! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Sep 2001
Location: Europe
Posts: 2,218
|
will do that if you tell me how
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
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 ?) |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Oct 2002
Location: European Union
Posts: 1,752
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: May 2002
Location: Calgary, Canada
Posts: 1,342
|
<.? include("file.txt"); ?.>
file.txt contains ur html
__________________
<b><a href="http://www.hotlinkprotector.com"><font color="yellow">Hotlink Protector</font></a> - Protect all your file types from hotlinking the professional way. <br> See a demo <a href="http://www.hotlinkprotector.com/demo.html"><font color="yellow">here</font></a>, and testimonials <a href="http://www.hotlinkprotector.com/testimonials.html"><font color="yellow">here</font></a><br>ICQ: 146423631 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: May 2002
Location: CT
Posts: 5,246
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Jan 2003
Location: midwest side, yo
Posts: 4,728
|
can you run SSI and PHP on the same page?
__________________
<a href="http://www.iroc409.com/"><img src="http://www.iroc409.com/adv/120x60.gif" border=0></a> icq: 1 7 6 4 2 0 9 6 0 Gallery templates for ONLY $25! w00t! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Join Date: May 2002
Location: Calgary, Canada
Posts: 1,342
|
Quote:
< ? include("nav.html"); ? >
__________________
<b><a href="http://www.hotlinkprotector.com"><font color="yellow">Hotlink Protector</font></a> - Protect all your file types from hotlinking the professional way. <br> See a demo <a href="http://www.hotlinkprotector.com/demo.html"><font color="yellow">here</font></a>, and testimonials <a href="http://www.hotlinkprotector.com/testimonials.html"><font color="yellow">here</font></a><br>ICQ: 146423631 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Jan 2003
Location: midwest side, yo
Posts: 4,728
|
duh, you can't... unless i guess you include a php file in the ssi... then that might work. hmm...
__________________
<a href="http://www.iroc409.com/"><img src="http://www.iroc409.com/adv/120x60.gif" border=0></a> icq: 1 7 6 4 2 0 9 6 0 Gallery templates for ONLY $25! w00t! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
MFBA
Industry Role:
Join Date: Mar 2003
Location: PNW
Posts: 7,230
|
the include is a php function
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
MFBA
Industry Role:
Join Date: Mar 2003
Location: PNW
Posts: 7,230
|
so yes you can include php in it. it will be interperate the php thats in the include.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Join Date: Sep 2001
Location: Europe
Posts: 2,218
|
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 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Macdaddy coder
Industry Role:
Join Date: Feb 2002
Location: MacDaddy pimp coder
Posts: 2,806
|
i can help... hit me up 13605110
__________________
MacDaddy Coder. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 | |
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 | |
Confirmed User
Join Date: Jan 2003
Location: midwest side, yo
Posts: 4,728
|
Quote:
ahh... ok, i thought php used something else ![]() ![]()
__________________
<a href="http://www.iroc409.com/"><img src="http://www.iroc409.com/adv/120x60.gif" border=0></a> icq: 1 7 6 4 2 0 9 6 0 Gallery templates for ONLY $25! w00t! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |