[geeklog-users] PHP in Header.thtml

Tony Bibbs tony at tonybibbs.com
Wed Feb 5 09:15:46 EST 2003


Change those to require_once.  This will cause a fatal error if it can't 
find the files in question.  It is obvious that for some reason the 
include isn't happening.

--Tony

 On Wed, 5 Feb 2003, Shane MacDonald wrote:

> Dirk,
> 
> Here is code that I added:
> 
> 
> 238	<?php
> 239	/* advertising code */
> 240        	include ('myPath/config.inc.php');
> 241		include ('myPath/view.inc.php');
> 242		include ('myPath/acl.inc.php');
> 243
> 244		view("html", 2);
> 245   ?>
> 
> This is the error that was returned:
> 
> "Fatal error: Call to undefined function: view() in
> /usr/home0/eyecrave/public_html/lib-common.php(859) : eval()'d code on line
> 244"
> 
> I tried also adding this {site_url} for myPath with no success. I then get a
> whole different group of errors.
> 
> Thanks,
> 
> Shane
> 
> 
> 
> 
> 
> -----Original Message-----
> From: geeklog-users-admin at lists.geeklog.net
> [mailto:geeklog-users-admin at lists.geeklog.net]On Behalf Of Dirk Haun
> Sent: Wednesday, February 05, 2003 3:18 AM
> To: geeklog-users at lists.geeklog.net
> Subject: Re: [geeklog-users] PHP in Header.thtml
> 
> 
> Shane MacDonald <shane at eyecravedvd.com> wrote:
> 
> >Everytime I add it I get an error. I assume it's because there's not
> suppose
> >to be PHP in the .thtml files.
> 
> Actually, it should be possible to use PHP in header.thtml (but only there).
> 
> What did you try? Which errors do you get?
> 
> 
> >How, can I successfully add this feature to the header??
> 
> It might be a better idea to put the includes in the theme's
> functions.php file and only have the call to the function in header.thtml.
> 
> bye, Dirk
> 
> 
> --
> http://www.haun-online.de/
> http://mypod.de/
> 
> _______________________________________________
> geeklog-users mailing list
> geeklog-users at lists.geeklog.net
> http://lists.geeklog.net/listinfo/geeklog-users
> 
> _______________________________________________
> geeklog-users mailing list
> geeklog-users at lists.geeklog.net
> http://lists.geeklog.net/listinfo/geeklog-users
> 

-- 
------------------------------------------------------------------------|
Tony Bibbs         | "I guess you have to remember that those who don't |   
tony at tonybibbs.com | hunt or fish often see those of us who do as       |
                   | harmlessly strange and sort of amusing. When you   | 
                   | think about it, that might be a fair assessment."  | 
                   | --Unknown                                          |
------------------------------------------------------------------------|





More information about the geeklog-users mailing list