Swedie Posted May 12, 2009 Share Posted May 12, 2009 I've been trying to google this but this is probably a pretty unique problem because I can't find anyone else with the same problem. The problem is that PHP sometimes timeout on calls or functions related to looking up global values. For example this: $_SERVER['HTTP_REFERER']. How can it timeout with a blank white page? It happens several times a day for my users. How can I find out what really is happening behind the timeout? The server is a Windows Server machine with IIS6 but I run Apache on it for PHP and MySQL-pages. The server has multiple IPs. I have a clue what it could be but I'm far from a technician when it comes to setting up a Windows Server machine. Please help me out! Thank you! Quote Link to comment https://forums.phpfreaks.com/topic/157789-strange-timeout-in-global-php-variables/ Share on other sites More sharing options...
JonnoTheDev Posted May 12, 2009 Share Posted May 12, 2009 I don't think that a timeout is your issue. There is no such thing that is why you cannot find any information. If you get a blank page then the script must be terminating with an error but you haven't set your php configuration to display errors. Add these lines to the top of the script preferably in a common include to all pages: ini_set('display_errors', 1); ini_set('error_reporting', E_ALL & ~E_NOTICE); Quote Link to comment https://forums.phpfreaks.com/topic/157789-strange-timeout-in-global-php-variables/#findComment-832259 Share on other sites More sharing options...
Swedie Posted May 12, 2009 Author Share Posted May 12, 2009 It is a timeout error as the page goes blank and display sa "timeout on row 5 of index.php" and on that very code $var = $_SERVER['HTTP_REFERER']. I'm not a total beginner in PHP so I've ruled out quite a bit. I think this issue caused by something rare... I believe it has to do with the fact that the server has multiple IPs and DNS-lookup / reverse DNS stuff. Oh and also the fact that it's a Microsoft machine I don't think that a timeout is your issue. There is no such thing that is why you cannot find any information. If you get a blank page then the script must be terminating with an error but you haven't set your php configuration to display errors. Add these lines to the top of the script preferably in a common include to all pages: ini_set('display_errors', 1); ini_set('error_reporting', E_ALL & ~E_NOTICE); sdfsddfs Quote Link to comment https://forums.phpfreaks.com/topic/157789-strange-timeout-in-global-php-variables/#findComment-832544 Share on other sites More sharing options...
Swedie Posted May 14, 2009 Author Share Posted May 14, 2009 Please, anyone? Gotta solve this... Quote Link to comment https://forums.phpfreaks.com/topic/157789-strange-timeout-in-global-php-variables/#findComment-833882 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.