truenitin Posted July 4, 2006 Share Posted July 4, 2006 Hiii i get the following error when i clik on <li><a href="index.php?page_file=mainlogin">Login</a></li> the link i wrote in my menu itemerror:Warning: main(\index.php?page_file=mainlogin.php): failed to open stream: Invalid argument in c:\program files\easyphp1-8\www\index.php on line 16Warning: main(): Failed opening '\index.php?page_file=mainlogin.php' for inclusion (include_path='.;C:\PROGRA~1\EASYPH~1\\php\pear\') in c:\program files\easyphp1-8\www\index.php on line 16when i run this code:<?php$full_path = getenv("REQUEST_URI");$root = dirname($full_path);$page = basename($full_path);if (strpos($page,"..")) { die("Bad page request");}if (!$page) $page = "index";$content_file=$root."".$page.".php";echo "this is full path".$content_file;include("header.php");include($content_file);include("footer.php");?>is it something to do with setting of default paths to search for files?????Nitin Link to comment https://forums.phpfreaks.com/topic/13651-warning-mainindexphppage_filemainloginphp-failed-to-open-stream/ Share on other sites More sharing options...
wildteen88 Posted July 4, 2006 Share Posted July 4, 2006 Why have you made a poll for this topic? If you dont want a poll dont fill in the poll options, leave theme blank Link to comment https://forums.phpfreaks.com/topic/13651-warning-mainindexphppage_filemainloginphp-failed-to-open-stream/#findComment-52941 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.