Ups, I forgot to reply to everyone again, sorry. ---------- Forwarded message ---------- From: Martin Alterisio <malterisio777@xxxxxxxxx> Date: 16-abr-2006 13:53 Subject: Re: Include Problem To: Shaun <shaunthornburgh@xxxxxxxxxxx> You're using an absolute path to the file, maybe what you really meant to do was: include("cms/templates/footer.php"); 2006/4/15, Shaun < shaunthornburgh@xxxxxxxxxxx>: > Hi, > > I am having problems with an include statement, i am using the following > statement in an effort to include a footer file on my page: > > include("/cms/templates/footer.php"); > > However I get the following error: > > Warning: main(/cms/templates/footer.php): failed to open stream: No such > file or directory in /home/m/y/mysite/public_html/cms/news/index.php on > line > 38 > > Warning: main(/cms/templates/footer.php): failed to open stream: No such > file or directory in /home/m/y/mysite/public_html/cms/news/index.php on > line > 38 > > Warning: main(): Failed opening '/cms/templates/footer.php' for inclusion > (include_path='.:/lib/php') in > /home/m/y/mysite/public_html/cms/news/index.php on line 38 > > The file is definitely there, the script just doesn't seem to be picking > it > up, has anyone else had this problem? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >