I have a very weird error going on right now.
When I try to access my page, it displays OK on the browser.
But when I try to access it from a PHP script or from curl, I will get a big fat internal server error.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, firstname.lastname@example.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Here is my PHP code:
there is nothing wrong with the code because when I try this on the dozens of other websites, there is no problem.
Note that I am running the script from another server.
Anyone knows whats going on here???