You are here: Re: cURL - copy image file from one server to another « PHP Programming Language « IT news, forums, messages
Re: cURL - copy image file from one server to another

Posted by Rik on 10/26/06 17:57

friglob wrote:
> i would need help with creating some cURL code...
>
> $old_file = "http://my_host.com/images/test.jpg";
> $new_destination = "http://some_other_host.com/archived_images";
>
> i was trying to create a cURL code that would copy the $old_file to a
> $new_destination but did not have much success... basicaly i need to
> copy the file to the new server and if succedded, delete the original
> on old server

It would be a hell of a lot easier if you do it by FTP rather then cURL.
How do you propose you can delete a file by HTTP, or store (yes, PUT, very
rare)?
--
Rik Wasmus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация