Re: Copying an image from one server to another

From: Date: Tue, 05 Feb 2008 18:24:30 +0000
Subject: Re: Copying an image from one server to another
References: 1 2 3 4 5 6 7  Groups: php.db 
Request: Send a blank email to php-db+get-44575@lists.php.net to get a copy of this message
On Feb 5, 2008 9:49 AM, ioannes <ioannes@btinternet.com> wrote: > OK but I could execute the script on the target server, which is also > mine. So the jpg on the source is actually the remote server, I would > be reading a remote file and writing it to the server which is executing > the script. Then you could do something like this: <? $filename = "http://www.remote.come/image.jpg"; exec('wget '.$filename); ?> As always, sanitizing and customizing are up to you. -- </Dan> Daniel P. Brown Senior Unix Geek <? while(1) { $me = $mind--; sleep(86400); } ?>

« previous php.db (#44575) next »