NYCPHP Meetup

[nycphp-talk] php script timeout not working

Corey H Maass - gelform.com corey at gelform.com
Sun Apr 5 16:28:20 EDT 2009


Hey, folks. I've got a script that uploads a file from my server to
Amazon's S3. It works fine, and I'm using ignore_user_abort(true) so
that I can call it, but don't have to wait for the response. Great. Now
I am trying to create the file that will call the uploader and then die.
It basically looks like this:

set_time_limit(1);
    	
$handle = fopen("http://localhost/s3uploader.php", "r");
stream_set_timeout($handle, 1);

But neither timeout is working - it sits and spins while the upload
takes place. Any ideas?

Thanks,

Corey

//
Corey H Maass
Gelform Design
Brooklyn, NY
Web design and development for art and business

em corey at gelform.com
ww http://www.gelform.com
ph 646/228.5048
fx 866/502.4861
IM gelform




More information about the talk mailing list