I have the following issues when trying to get the header using the get_headers() function.
I get the following Warning: get_headers(): This function may only be used against URLs
for both code snippets below.
get_headers("file:///C:/wamp64/www/site/index2.php");
get_headers("C:/wamp64/www/site/index2.php");
And this one just loops forever
get_headers("http://localhost/site/index2.php");
I was wondering how can I fix this problem or is there another way I can get the headers if so how and thanks.