Preview image from ftp server using PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
shakilearl
Forum Newbie
Posts: 2
Joined: Sun Mar 16, 2014 2:34 pm

Preview image from ftp server using PHP

Post by shakilearl »

Hello,

I've been struggling to find out how to preview image file from an ftp server using PHP. In some places, I've seen some people discussing that it is not possible to do on the fly. The only way to do this is to download the image first to local drive and preview from there. But that is totally pointless as I can do it using the preview facility of my computer OS.

I believe there must be a way to preview image on the fly from FTP server.

Could anyone provide me some authentic information please? Any code snippet for this will be highly appreciated.

Regards,
Shakil
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Preview image from ftp server using PHP

Post by requinix »

It is not, in fact, possible to do. FTP just doesn't have that kind of functionality.
shakilearl
Forum Newbie
Posts: 2
Joined: Sun Mar 16, 2014 2:34 pm

Re: Preview image from ftp server using PHP

Post by shakilearl »

Thanks but is there any trick we can play to do it? I mean finding an alternative?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Preview image from ftp server using PHP

Post by requinix »

Can you store a separate thumbnail version of the image? You'd have to fully download that but at least it would be small.

Otherwise... I don't think so.
Post Reply