Re: [PHP] include help please

2003-07-31 Thread Matt Matijevich
INDEX.PHP the problem must be when i am trying to include the $page variable get rid of the ' around the variable. $page = "something.php"; include $page; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include help please

2003-07-31 Thread Chris Shiflett
--- LoonySalmon <[EMAIL PROTECTED]> wrote: > $page = '$home'; ... > Warning: main($page) [function.main]: failed to create stream: > No such file or directory in C:\swamp\www\site\index.php on line > 109 You're trying to include a file named $home, and it doesn't exist. I think you mean this inste

RE: [PHP] include help please

2003-07-31 Thread Dan Joseph
Hi, Take the quotes off around the $page variable. -Dan Joseph > -Original Message- > From: LoonySalmon [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2003 4:07 PM > To: [EMAIL PROTECTED] > Subject: [PHP] include help please > > > i am looking to

[PHP] include help please

2003-07-31 Thread LoonySalmon
i am looking to use includes on my page, this is the code that i want to use to call my files with: INDEX.PHP FILES.INC.PHP I try to load up index.php and this is what i get Warning: main($page) [function.main]: failed to create stream: No such file or directory in C:\swamp\www\site\index.p