w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Any idea why this piece of PHP code is making my script hang?

Unless you've set DOMAIN as a constant somewhere else, it's not going to redirect anywhere. Since you said this is at the top of your code, I suspect this is the case.

To confirm this, replace that final header() call with a call to echo() (output to browser) or error_log() (output to your web server log file) instead. This will show you where it's trying to redirect you; I think it won't be a valid URL.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.