Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 9th, 2003, 09:53 PM
MasterChief MasterChief is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Virginia
Posts: 495 MasterChief User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 6 m 24 sec
Reputation Power: 6
Send a message via AIM to MasterChief Send a message via MSN to MasterChief
Some questions

I was wondering how I can make it so that when I change something to a layout on one page, it does it to all pages. Example: I add a link to a sub bar and the link is added to every page. Also, I would like to know how I can make a really nice poll using PHP. I want mine to work exactly like the one at GameFAQs only using PHP, not ASP. Your help will be greatly appreciated.

- Thanks
MasterChief

Reply With Quote
  #2  
Old April 9th, 2003, 10:09 PM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 11 m 27 sec
Reputation Power: 27
1. You need to use includes
PHP Code:
include("footer.html"); 

That will load the HTML from footer.html into where that line is. In footer will be the html for the footer of the doucument.

2. There are many free poll scripts running around the net... why make your own? Advaced poll is a good one to use http://www.proxy2.de/scripts.php
__________________
- Andreas Koepke

I have photos for sale at RedBubble


Reply With Quote
  #3  
Old April 10th, 2003, 01:14 AM
dotcomguy dotcomguy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: #devshed @ irc2.beyondirc.net
Posts: 231 dotcomguy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 40 sec
Reputation Power: 6
Send a message via ICQ to dotcomguy Send a message via AIM to dotcomguy Send a message via Yahoo to dotcomguy
You can use server side includes (SSI)
Code:
<!--#include virtual="footer.html" -->


Also, I would definitely suggest keeping all your layout and design in external style sheets. This will allow you to easily control your overall web site's layout.
__________________
.

Reply With Quote
  #4  
Old April 10th, 2003, 06:02 AM
MasterChief MasterChief is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Virginia
Posts: 495 MasterChief User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 6 m 24 sec
Reputation Power: 6
Send a message via AIM to MasterChief Send a message via MSN to MasterChief
I'm using external CSS.

Reply With Quote
  #5  
Old April 10th, 2003, 11:17 AM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,332 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Quote:
You can use server side includes (SSI)
Not all hosts support...

Reply With Quote
  #6  
Old April 10th, 2003, 08:15 PM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 11 m 27 sec
Reputation Power: 27
Quote:
Originally posted by mttatkns
Not all hosts support...


Not all hosts support PHP either. Your point is? SSI is included as part of Apache and therefore a large amount have support for it.

Reply With Quote
  #7  
Old April 10th, 2003, 08:53 PM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,332 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Quote:
Originally posted by a.koepke
Not all hosts support PHP either. Your point is? SSI is included as part of Apache and therefore a large amount have support for it.
He said he wants it to be PHP-based, so we know his host supports it; we don't know if they support SSI as well and it's not worth switching for SSI

Reply With Quote
  #8  
Old April 10th, 2003, 08:59 PM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 11 m 27 sec
Reputation Power: 27
Quote:
He said he wants it to be PHP-based,


Really?

Quote:
I was wondering how I can make it so that when I change something to a layout on one page, it does it to all pages. Example: I add a link to a sub bar and the link is added to every page.


But anyhow, if you have PHP support I would use that, SSI is good to use since it makes it more portable between host.

Reply With Quote
  #9  
Old April 11th, 2003, 06:33 AM
MasterChief MasterChief is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Virginia
Posts: 495 MasterChief User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 6 m 24 sec
Reputation Power: 6
Send a message via AIM to MasterChief Send a message via MSN to MasterChief
I don't want to download and go through the process of configuring. I want to use PHP. I want to make a poll of my own. Sorry if I don't agree with using SSI or an already made poll. It's just my opinion on how I want things to work.

Reply With Quote
  #10  
Old April 11th, 2003, 06:09 PM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,332 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Quote:
Originally posted by MasterChief
I don't want to download and go through the process of configuring. I want to use PHP. I want to make a poll of my own. Sorry if I don't agree with using SSI or an already made poll. It's just my opinion on how I want things to work.
Okay then, good luck

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Some questions


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT