This works perfectly
curl http://google.com
This doesn't:
php -r "echo file_get_contents('http://google.com');
I am getting the warning:
PHP Warning: file_get_contents(google.com): failed to open stream: Connection timed out"
but then if I do something like
php -r "echo file_get_contents('http://localhost:8000');
on a local server it works, somehow I must have messed something in the php configuration, can anyone one have a clue to solve this?