?
PHP FAQ
PHP Articles
PHP Help
Bulletin Board
PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help
C# Help
RFP Direct
?
?PHP includes
Author :??(---.client.bresnan.net)
Date :???02-21-04 01:27
I'm am trying to get a menu page to display aon all my pages. I have tried to use PHP include statements, but it is not working. Does anyone have a sample script showing how, and the correct syntax and placement of the include statement?
?Re: PHP includes
Author :??(---.tnt1.hot-springs.ar.da.uu.net)
Date :???02-21-04 06:25
include('filename.php');
?>
?Re: PHP includes
Author :??(---.tnt1.hot-springs.ar.da.uu.net)
Date :???02-21-04 06:30
if your unsure of how to display the menu when it gets included just put the following in the menu file
echo "Hey, heres the menu information";
?>
?Re: PHP includes
Author :??(---.client.bresnan.net)
Date :???02-21-04 14:02
Yeh. That's what I was using, but I still don't know where to put it in the document -- in the "body", before the "head"...?
Thanks
?Re: PHP includes
Author :??(---.client.bresnan.net)
Date :???02-21-04 14:03
Yeh. That's what I was using, but I still don't know where to put it in the document -- in the "body", before the "head"...?
Thanks
?Re: PHP includes
Author :??(---.client.bresnan.net)
Date :???02-21-04 14:47
Not working at all. Does the .ini file have to be setup to use includes?
?Re: PHP includes
Author :??(---.client.bresnan.net)
Date :???02-21-04 17:35
I found the problem. The document i was puting the include statement in was saved as htlm not php. Now it works.
?Re: PHP includes
Author :??(---.client.bresnan.net)
Date :???02-21-04 17:36
I found the problem. The document i was puting the include statement in was saved as htlm not php. Now it works.
?Re: PHP includes
Author :??(---.tnt1.hot-springs.ar.da.uu.net)
Date :???02-22-04 06:56
well if its for your menu, id say AFTER the tag
heres a example...
include('settings.php'); ?>
echo $pagetitle; ?>
include('mystyle.php'); ?>
include('top.php');
include('menu.php');
include('news.php');
?>
?Re: PHP includes
Author :??(---.client.bresnan.net)
Date :???02-22-04 13:41
Thanks