Re: Copying an image from one server to another

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Feb 5, 2008 9:49 AM, ioannes <ioannes@xxxxxxxxxxxxxx> 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); } ?>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux