thanks everybody now it works "Loonysalmon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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 > > <?php > require 'files.inc.php'; > $page = '$home'; > include '$page'; > ?> > > FILES.INC.PHP > > <?php > $home = 'home.html'; > $forum = 'forum/index.php'; > $contact = 'contact.html'; > ?> > > 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.php on line 109 > > Warning: main() [function.main]: Failed opening '$page' for inclusion > (include_path='.;c:\swamp\php\includes;C:\swamp\www') in > C:\swamp\www\site\index.php on line 109 > > > > > the problem must be when i am trying to include the $page variable > > could somebody please help me? > >
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php