shergold Posted July 7, 2009 Share Posted July 7, 2009 Hey, i was just wondering if anyone could help me. i created a page with the following code: <?php $page = $_GET ; if ($page == "index") include("index.php"); elseif ($page == "contact") include ("contact.php"); elseif ($page == "login") include ("login.php"); elseif ($page == "upload") include ("upload.php"); else include ("index.php"); ?> <html> <head> <title>Index</html> <body> <h1>Index</h1> <align = "left"> <a href"/index.php?page=index>Home</a> <a href"/index.php?page=login>Login</a> <a href"/index.php?page=upload>Upload</a> <a href"/index.php?page=contact>Contact</a> </align> </body> </html> now i cant open the file and get the following message: "The connection to the server was reset while the page was loading". all my other pages work fine. im using xampp. Thanks, shergold. Link to comment https://forums.phpfreaks.com/topic/165114-solved-the-connection-to-the-server-was-reset-while-the-page-was-loading/ Share on other sites More sharing options...
shergold Posted July 7, 2009 Author Share Posted July 7, 2009 ignore the html errors, im half asleep Link to comment https://forums.phpfreaks.com/topic/165114-solved-the-connection-to-the-server-was-reset-while-the-page-was-loading/#findComment-870652 Share on other sites More sharing options...
pmicro Posted July 8, 2009 Share Posted July 8, 2009 I was having this same issue earlier today - try turning off your computer, router, and modem (if you're using a cable or dsl modem/router) for a few minutes, then turning back on your modem, then your router, then your computer - there may be a bad path that was cached in one of them. It took care of my problem, hopefully it will work for yours. Link to comment https://forums.phpfreaks.com/topic/165114-solved-the-connection-to-the-server-was-reset-while-the-page-was-loading/#findComment-870712 Share on other sites More sharing options...
shergold Posted July 8, 2009 Author Share Posted July 8, 2009 Restarting your router and modem wont make any difference by the way as its localhost, and even if its on an external server restarting my internet would make no difference because it doesnt have any effect on the server output. although the restart worked , thanks, shergold. Link to comment https://forums.phpfreaks.com/topic/165114-solved-the-connection-to-the-server-was-reset-while-the-page-was-loading/#findComment-870990 Share on other sites More sharing options...
pmicro Posted July 8, 2009 Share Posted July 8, 2009 Awesome, glad that worked! Link to comment https://forums.phpfreaks.com/topic/165114-solved-the-connection-to-the-server-was-reset-while-the-page-was-loading/#findComment-871271 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.