I want to check if an external url exists and I've tried using different functions. Most functions use get_headers() function and this always shows me the warning "Warning: get_headers () [function.get-headers]: This function May only be used against URLs in / myhosting/..." . What could be the cause that this does not work? Localhost, Mac with MAMP
Asked
Active
Viewed 8,315 times
3
-
I was using the function of http://stackoverflow.com/a/15617151/1504078 – PoseLab Apr 28 '13 at 19:49
-
I am sorry for this question. I found a error in my code – PoseLab Apr 28 '13 at 20:23
1 Answers
6
Check the following setting in your php.ini file. It should be On.
allow_url_fopen = On; (the php doc : allow_url_fopen)
You can look at this question on how to edit your php.ini

Community
- 1
- 1

Frédéric Clausset
- 1,086
- 6
- 9