In file php.ini it's ok, that line was already set to "on" but I see the problem is when this header is send
header("WWW-Authenticate: Basic realm=\"Autentificare HTTP cu PHP\"");
header("HTTP/1.0 401 Unauthorized");
the error I receive is ths :
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, @ 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.
Apache/1.3.26 Server at localhost Port 9000
More help will be apreciated