andy's php projects
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Script and site usage:
All of the scripts on this site are provided free for non-commerical, personal or non-profit use. If you find these scripts useful to you, appreciate the free support, or are just an all round nice person, then why not donate a little dosh? If you wish to use any of these in a commercial system, please refer to the payment plan.


possible to use remote images?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    php.amnuts.com Forum Index -> Crop Canvas
View previous topic :: View next topic  
Author Message
getsmartt
Newbie


Joined: 21 May 2005
Posts: 2

PostPosted: Sat May 21, 2005 10:30 pm    Post subject: possible to use remote images? Reply with quote

Any thoughts on making this work for remotely hosted images, in other words I would like to let people post thumbnails on my server (http://myserver.com) that link to images on their server (http://theirserver/image.jpg). The script seems to fail when verify the image (http://theirserver/image.jpg) exists. [exact error message is - The file 'http://theirserver/image.jpg' cannot be found.]

I would like to be able to do this without storing a temp image on my server but would implement that solution if none other is available.
Back to top
View user's profile Send private message
getsmartt
Newbie


Joined: 21 May 2005
Posts: 2

PostPosted: Sun May 22, 2005 12:46 am    Post subject: Reply with quote

Should have added that I'm trying this with the interactive interface
Back to top
View user's profile Send private message
amnuts
Site Admin


Joined: 01 Sep 2002
Posts: 662
Location: East Sussex, England

PostPosted: Mon May 23, 2005 3:06 am    Post subject: Reply with quote

Hi, and welcome to the board.

I don't believe that the image loading functions - imagejpeg, imagepng, etc. - can work remotely. You'd first have to download the image to your server (via fopen, streams, ftp, or however you want to do it), open and modify it and then re-upload to the remote server.

Andy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    php.amnuts.com Forum Index -> Crop Canvas All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group