Posted by B.r.K.o.N.j.A on 10/09/06 12:19
friglob wrote:
> are there any issues i need to know backuping images on another server?
>
> i need to create a backup for lots of pictures so what i would like to
> do is:
>
> images are in their folder and ther path/name is stored in MySQL database
> on backup, i would just like to move them to the new server and update
> path in database so they are still accessible online from the main
> server...
>
> images are not displayed by the <img src...> but with
> show_image.php?code=47tzg4k3lr47...
> so when i call an image ie. show_image.php?code=1234,
> it searches for the path where code is 1234
> lets say, path would be
> http://www.somethirdpartyhost.com/backup_images/ozuhkz8.jpg
> would there be any problem for show_image.php on main server to do
> readfile(),imagecreate() on file from the thirdparty server?
>
> is there a better way to do that?
>
> thank you very much
>
readfile and imagecreate might not work with remote urls (depends on
url_fopen settings on your main server) so you might have to get
pictures using fopen or curl to your main server and then show them in
the way you've done it before.
--
B.r.K.o.N.j.A = Bionic Robotic Knight Optimized for Nocturnal Judo and
Assasination
[Back to original message]
|