User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 456,233 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,778 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1833 | Replies: 22
Reply
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  
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 636
Reputation: kkeith29 is on a distinguished road 
Rep Power: 3
Solved Threads: 71
kkeith29's Avatar
kkeith29 kkeith29 is online now Online
Practically a Master Poster

Re: T_STRING error? i cant find it

  #22  
Nov 12th, 2007
where are all of these functions you have coming from? get_header(), have_posts(), is_year(), ect.. your problem might be in them.
i will rewrite your code to help and see if i can find any errors. plz post the functions so we can look at them.
Reply With Quote  
Join Date: Nov 2007
Posts: 10
Reputation: tattie is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
tattie tattie is offline Offline
Newbie Poster

Re: T_STRING error? i cant find it

  #23  
Nov 12th, 2007
Originally Posted by kkeith29 View Post
where are all of these functions you have coming from? get_header(), have_posts(), is_year(), ect.. your problem might be in them.
i will rewrite your code to help and see if i can find any errors. plz post the functions so we can look at them.


thanks soo soo much if you do that that would be so kind

and thanks for the help eveyone i really do suck sometimes lol
Last edited by tattie : Nov 12th, 2007 at 6:42 pm.
Reply With Quote  
Reply

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

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

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 5:07 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC