|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-02-19 16:54 UTC] sebastien at tardif dot com
I have a script were I must disable error-reporting by the mysql_connect function, because I will use header("Status: 401 bla blabla");
When I disable error reporting (either with @mysql_connect or by modifying error_reporting php.ini), I get the "Internal Server Error 500" page.
If I don't disable it, I cannot change the header because the function outputs information.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 12 21:00:01 2025 UTC |
Sorry, My problem was in fact due not to the call with suppressed error output (@mysql_Connect), but to the header("HTTP/1.1 401 bla bla"); I changed it to header("Status: 401 bla bla") and my problem was resolved.