Current location: Hot Scripts Forums » Programming Languages » PHP » PHP header question


PHP header question

Reply
  #1 (permalink)  
Old 09-22-03, 01:52 PM
khadlock khadlock is offline
New Member
 
Join Date: Sep 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
PHP header question

I am a beginer with PHP, but I know enough to make changes. My question is that I have a header file that is being required by the php on every page of my site and I want to know if there is a way to have the index page reference a different header than the rest of the site.

If anyone could help I would really appreciate it.
Thanks
Reply With Quote
  #2 (permalink)  
Old 09-22-03, 11:09 PM
GrimShadow GrimShadow is offline
Newbie Coder
 
Join Date: Sep 2003
Location: Oklahoma
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
You might want to stick with one thread next time instead of three. The best way i could see would be to create a whole new header file, say your normal header is $header, you could create a new header called $header2 and edit your index to include $header2 instead of $header.
Reply With Quote
  #3 (permalink)  
Old 09-23-03, 08:17 AM
khadlock khadlock is offline
New Member
 
Join Date: Sep 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
The problem with that is I have an index.php which calls in the pages, which includes the index, the header, and the footer. Therefore, I have to somehow tell the index.php that when the index.html page is loaded I want index_header.html and when it is the other pages being loaded I want other_header.html. Can you offer any answer to this?

Thanks for your help, sorry for being obnoxious, I have a big deadline and am getting worried.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP and MySQL ? rob2132 Hot Scripts Forum Questions, Suggestions and Feedback 4 08-29-08 02:22 AM
PHP Dudes - Hi All stuart New Members & Introductions 4 05-03-04 01:22 PM
Custom PHP Scripts BdSBB Job Offers & Assistance 3 12-07-03 09:49 AM
MySQL with PHP question. HELP for a newbie kenfused PHP 3 08-02-03 12:53 AM
hehehe wierd question in php TheGreatOne PHP 7 06-10-03 11:30 PM


All times are GMT -5. The time now is 06:17 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.