-
-
Save fzaninotto/7327f0c782ae987170c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment