When i use file_get_contents or curl_exec with an url (http://google.com or other) return false with different context, user_agent, etc... No errors no Warnings
With local files it works, example: file_get_contents("a.txt");
Configuration:
Php.ini is right: allow_url_fopen = On
No Firewall: sudo ufw status: inactive
Phpinfo():
Protocols: dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtmp, rtsp, smtp, smtps, telnet, tftp
Host: x86_64-pc-linux-gnu
SSL: Version OpenSSL/1.0.1e
OpenSSL: support enabled
OpenSSL: Library Version OpenSSL 1.0.1e 11 Feb 2013
OpenSSL: Header Version OpenSSL 1.0.1e 11 Feb 2013
It is a dedicated server, maybe is there a physical firewall? or something I can't control?
Thank you very much
context
argument tofile_get_contents
that includes theuseragent
- similarly with your curl request – Professor Abronsius