|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-01-22 05:47 UTC] torben at cvs dot php dot net
[2000-01-22 12:39 UTC] mrobinso at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Jun 18 14:00:02 2026 UTC |
mysql_connect echos a failure message direktly to the html page instead of store it for geting it via mysql_error() I use mysql_connect together with http authentification. I Use the Username an Passwd supplied by apache to connect to mysql. As this far everything work fine. But if the login fails mysql_connect echos the error Page to the created Page making it imposible to use Header("HTTP/1.0 401 Unauthorized"); to signal unauthorized access back to the user. If the user just misstyped his passwd, there is no way to correct this because Netscape don?t redisplay the Username/Passwd requester. Not until Netscape is quit and restarted.