Appfog file_get_contents and curl connection timeout

311 Views Asked by At

I searched for similar issues at SO, but none worked for me.

I deployed my laravel 4 app on appfog and try to get content from an external website.

I've tried several things:

  • file_get_contents -> Connection timeout.
  • curl -> Connection timeout
  • Tried to set a custom timeout.not working

My PHP-Settings:

allow_url_fopen On
cURL support enabled

Is there something about appfog that you cannot access an external website?

1

There are 1 best solutions below

0
On BEST ANSWER

I got response from the Appfog Team.

They say that it is a problem with their EU-AWS servers and they're trying to fix this. It isn't fixed yet.

So normaly file_get_contents and curl should work.

Meantime solution for this problem:
Move your app to US-AWS servers. Everything works fine there.