Jump to content

Trying to get image from ftp server with php and displaying it in webpage.


Recommended Posts

Hi guys,

I have a page that lets you upload an image to a an ftp server. Now I am trying to create a page that will get those images and display them in a web page. I am trying to do this with php.

 

Does anyone know if it can be done?

 

Thanks guys,

I would start with this page in the manual: http://www.php.net/manual/en/ftp.examples-basic.php

 

it describes how PHP implements the ftp protocol and basic usage. Reading the comments below will also give you some insight

I had already gone over those pages and examples. I know how to upload and download a file from the ftp. What I can't figure out is how to get the image from the ftp using php and then display it on a php page with the html tag <img src="">. I don't even know if i can use the <img src=""> tag or if it would have to be done a different way. I have been looking around the web for examples and I haven't found one yet.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.