secret
Created

  • Download Gist
gistfile1.aw
PHP
1 2 3 4 5 6 7 8 9
<?php
$image = file_get_contents($path . '/' . $filename);
// wait until the file is loaded into memory
$fp = fsockopen('api.flickr.com', 80, $errno, $errstr, 30));
// wait until the DNS is resolved and the flickr server acknowledges the connection
// ...
fwrite($fp, $image);
// wait until the body is sent to flickr and the flickr server acknowledges the reception
fclose($fp);

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.