View Full Version : Header Codes Help

08-14-2007, 12:52 PM
hey, i'm writing a web application where if specific conditions are not met I want to be able to sent a HTTP error message to the browser. For example if the user currently logged in does not have access to a specific resource and they attempt to access it I want a http 403 Forbidden error code. I thought I could do it with header() but for some reason it is not working. Can any one see a problem with my code or help me in doing this?


08-14-2007, 01:21 PM
header("HTTP/1.0 403 Forbidden");