GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 19-Mar-2005, 12:56
Dawn Dawn is offline
New Member
 
Join Date: Mar 2005
Location: Manchester [UK]
Posts: 2
Dawn is on a distinguished road

Includes


hi all, im new here because i thought this would be the best place to get some help on includes. I have the includes code in my page, because I want a side bar [that will always be updated with info] as an include. But for some reason the sidebar isnt showing up. Im not sure what Im doing wrong as I have the code correct. I wont paste my html code yet in case no-one can help me. I hope someone out there can help me though, because its driving me nuts! Please tell me if you can help and I'll post my code (or email you the code if youre willing to help me on a one-to-one basis.

Thanks!
  #2  
Old 19-Mar-2005, 15:34
misunderstood misunderstood is offline
Member
 
Join Date: Jun 2003
Posts: 121
misunderstood is on a distinguished road
Hi Dawn,
are the includes ssi or php or something else? A code snippet is always helpful.
  #3  
Old 19-Mar-2005, 15:49
Dawn Dawn is offline
New Member
 
Join Date: Mar 2005
Location: Manchester [UK]
Posts: 2
Dawn is on a distinguished road
Quote:
Originally Posted by misunderstood
Hi Dawn,
are the includes ssi or php or something else? A code snippet is always helpful.

Its php.

Quote:
<? include(sidebar.txt); ?>

i know that the page that has the includes php in, has to be .php and ive done that, but its not displaying. any help would be well appreicated.
  #4  
Old 23-Mar-2005, 08:17
Corey Bryant Corey Bryant is offline
Member
 
Join Date: Oct 2003
Location: Castle Rock, CO
Posts: 216
Corey Bryant will become famous soon enough
You might try:
Code:
<? include(sidebar.txt) ?>
I am not too sure about PHP all that much though. And yes, the page you are including this in needs to have an extension that the server will recognize as PHP so it will be parsed correctly.

You also might try renaming sidebar.txt to sidebar.inc - I have seen some webservers not picking up some extensions. And make sure that sidebar.txt is in the same folder as the PHP file
  #5  
Old 01-Apr-2005, 12:54
Jenni Jenni is offline
New Member
 
Join Date: Apr 2005
Posts: 3
Jenni is on a distinguished road
Quote:
Originally Posted by Dawn
hi all, im new here because i thought this would be the best place to get some help on includes. I have the includes code in my page, because I want a side bar [that will always be updated with info] as an include. But for some reason the sidebar isnt showing up. Im not sure what Im doing wrong as I have the code correct. I wont paste my html code yet in case no-one can help me. I hope someone out there can help me though, because its driving me nuts! Please tell me if you can help and I'll post my code (or email you the code if youre willing to help me on a one-to-one basis.

Thanks!

Hi Dawn,
I just recently started using include files. Your include file is .php, right? And the page you're putting it on is .html, right? Change the .html to .php.
I just found away around this today. Check out this info at www.desilva.biz
Hope I was able to help.
Jenni
 
 

Recent GIDBlogFirst week of IA training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Zen Interactive - Free & Pay Plans (Private & Business) zidev Web Hosting Advertisements & Offers 0 02-Nov-2004 09:29
php includes misunderstood MySQL / PHP Forum 2 26-Jun-2004 06:47
link error? pablowablo CPP / C++ Forum 14 19-Jun-2004 10:00
Including Includes Guest Web Design Forum 1 16-Aug-2001 20:31

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 01:38.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.