Am 14.02.12 14:55, schrieb Matijn Woudt:
> On Tue, Feb 14, 2012 at 1:28 PM, nik600 wrote:
>>
>> *** server.php *** placed on www.foo.com at
>> http://www.foo.com/server.php
>> > sleep(15);
>> echo "OK";
>> ?>
>>
> I don't think this is possible with file_get_contents, but it should
> work
On Tue, Feb 14, 2012 at 1:28 PM, nik600 wrote:
> Dear all
>
> i'm trying to handle a max timeout into a file_get_contents request,
> this is my code:
>
> *** client.php *** placed on http://test.foo.com/client.php
> ini_set('default_socket_timeout',10);
> $ctx = stream_context_create(arra
Dear all
i'm trying to handle a max timeout into a file_get_contents request,
this is my code:
*** client.php *** placed on http://test.foo.com/client.php
array('timeout' => 10)));
$data = file_get_contents("http://www.foo.com/server.php",0,$ctx);
if(!data){
die("error during page reques
3 matches
Mail list logo