Forum Moderators: coopster
Is the anyway to get the header response of a url/site with php, I would like to be able to enter a url and get the response code e.g. 200.
Any help would be greatly appreciated.
Note it only works as of PHP 5.1.3
with PHP you should use fsockopen()/fputs()/fread()/fclose() for that... you cannot use fopen(URL) because that will only return the request body.
It works in PHP 4.3 > 5