Jump to content

Recommended Posts

What I am trying to do is create a script that when run will connect to an FTP site, Read each directory, search for a .jpg file then output the information.

Example

c:\ftp\ contains 10 directories.

c:\ftp\pic1
c:\ftp\pic2
etc..
c:\ftp\pic3

Each of those directories might include a sub directory. I want it to go through, make a list of all the main directory's then download a jpg file.

So on a webpage I would see

Pic 1
Pic 2
Pic 3

When I click Pic 1, i can point it to a page to display the .jpg's downloaded in each directory.

Any help would be greatly appriciated.

Thanks
Link to comment
https://forums.phpfreaks.com/topic/11217-listing-ftp-dir-and-displaying-info/
Share on other sites

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.