RSS Forums RSS
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 2081 | Replies: 22 | Thread Tools  Display Modes
Join Date: Feb 2006
Location: Arizona, USA
Posts: 11
Reputation: Darkmeerkat is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
Darkmeerkat's Avatar
Darkmeerkat Darkmeerkat is offline Offline
Newbie Poster

Re: T_STRING error? i cant find it

  #21  
Nov 12th, 2007
What's get_header? It's not a PHP function, and you've not defined it in the code you've posted, so PHP doesn't know what you're trying to do. If you want to include 'header.php' in your file, use include, require, include_once or require_once.

include simply inserts the contents of another file into the script. require does the same thing, but it also prints an error and kills the script if it can't find the file. The '_once' versions also make sure the file is only included once in the script. So if you want to use require, you would write require 'header.php';.

You'll probably get another error when you get to the get_footer(); call at the bottom of the script; just do the same thing as above, replacing 'footer.php' for 'header.php'.
Last edited by Darkmeerkat : Nov 12th, 2007 at 12:42 pm.
Reply With Quote  

Only community members can participate in forum threads. You must register or log in to contribute.



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

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 4:29 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC