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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-02-2003, 03:15 PM   #1
deleteduser
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!
__________________
ICQ #58981463
Promote my PornAccess Site: 2Chicks1Dick
deleteduser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2003, 03:17 PM   #2
XxXotic
Confirmed User
 
Join Date: Jun 2002
Location: Da Swamps
Posts: 8,500
make individual head and menu files call with ssi perhaps?
__________________
Oxeo - Serious Hosting For Serious Webmasters. iCQ:135.887013
XxXotic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2003, 03:18 PM   #3
deleteduser
Confirmed User
 
Join Date: Sep 2001
Location: Europe
Posts: 2,218
will do that if you tell me how
__________________
ICQ #58981463
Promote my PornAccess Site: 2Chicks1Dick
deleteduser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2003, 03:19 PM   #4
swedguy
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 ?)
swedguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2003, 03:20 PM   #5
Calvinguy
Confirmed User
 
Join Date: Oct 2002
Location: European Union
Posts: 1,752
With php use include or require.

Use the manual: http://www.php.net/manual/
Calvinguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2003, 03:20 PM   #6
michaelw
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
michaelw is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2003, 03:20 PM   #7
foe
Confirmed User
 
Join Date: May 2002
Location: CT
Posts: 5,246
Quote:
Originally posted by swedguy
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 ?)
This is the simplest way to go.
foe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2003, 03:21 PM   #8
iroc409
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!
iroc409 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2003, 03:21 PM   #9
michaelw
Confirmed User
 
Join Date: May 2002
Location: Calgary, Canada
Posts: 1,342
Quote:
Originally posted by swedguy
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 ?)
youre missing the ;
< ? 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
michaelw is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2003, 03:23 PM   #10
iroc409
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!
iroc409 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2003, 03:25 PM   #11
Why
MFBA
 
Industry Role:
Join Date: Mar 2003
Location: PNW
Posts: 7,230
the include is a php function
Why is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2003, 03:26 PM   #12
Why
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.
Why is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2003, 03:39 PM   #13
deleteduser
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
__________________
ICQ #58981463
Promote my PornAccess Site: 2Chicks1Dick
deleteduser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2003, 03:40 PM   #14
boldy
Macdaddy coder
 
Industry Role:
Join Date: Feb 2002
Location: MacDaddy pimp coder
Posts: 2,806
i can help... hit me up 13605110
__________________
MacDaddy Coder.
boldy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2003, 03:41 PM   #15
swedguy
Confirmed User
 
Industry Role:
Join Date: Jan 2002
Posts: 7,981
Quote:
Originally posted by michaelw


youre missing the ;
< ? include("nav.html"); ? >
Doesn't matter if you just have one line.
swedguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2003, 03:52 PM   #16
iroc409
Confirmed User
 
Join Date: Jan 2003
Location: midwest side, yo
Posts: 4,728
Quote:
Originally posted by Why
the include is a php function

ahh... ok, i thought php used something else i still don't do a lot of php
__________________
<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!
iroc409 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.