I don't think its possible, just had a look around the HTTP and Apache functions in the PHP manual and can't find anything. only can get the HTTP status code of the current page in PHP with $_SERVER['REDIRECT_STATUS'] .so you can use fopen("http://www.example.com/", "r");