mikosiko Posted January 26, 2012 Share Posted January 26, 2012 what does echo $_SERVER['REQUEST_METHOD']; shows? did you check the ngnix website? Quote Link to comment https://forums.phpfreaks.com/topic/255758-the-simplest-thing-in-the-world-fails-lol/page/2/#findComment-1311502 Share on other sites More sharing options...
cybernet Posted January 26, 2012 Author Share Posted January 26, 2012 @mikosiko i checked the first time as you said and was still the same error somehow echo $_SERVER['REQUEST_METHOD']; outputs Notice: Undefined index: REQUEST_METHOD in /home/postlist/x/view_post.php i know for sure that i should get this answer Quote Link to comment https://forums.phpfreaks.com/topic/255758-the-simplest-thing-in-the-world-fails-lol/page/2/#findComment-1311509 Share on other sites More sharing options...
PFMaBiSmAd Posted January 26, 2012 Share Posted January 26, 2012 For the $_SERVER and $_GET and probably all the rest of the server populated variables to be empty, there's something fundamentally wrong with your web server to php configuration. Either your configuration file path is not correct or there is some syntax error in the configuration file or you have a permission problem that is preventing the configuration file from being read or you have some incompatibility between the web server/php software. Are there other php based web sites on the same server that do work? If so, investigate what is different between their configuration settings and the site that does not work. Quote Link to comment https://forums.phpfreaks.com/topic/255758-the-simplest-thing-in-the-world-fails-lol/page/2/#findComment-1311534 Share on other sites More sharing options...
cybernet Posted January 27, 2012 Author Share Posted January 27, 2012 the other sites on my host works perfectly they have the same permision as the current site only the path is changed the other different things is that this site i wrote it myself .. but the problem is that even as a single page ( without the rest of the site ) the script doesn't work :-\ Quote Link to comment https://forums.phpfreaks.com/topic/255758-the-simplest-thing-in-the-world-fails-lol/page/2/#findComment-1311732 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.