djbruno
02-14-2003, 01:25 AM
I made a script to update my site that actually deletes some files and rename some directories. As I couldn't get it to delete these files using the unlink function, I have gone with the ftp functions, and placed the script under a 'secure' directory (.htaccess) to prevent leaking my ftp login/passwd.
I would like to upload a dir that contains a lot of files (pictures) and another subdir that also contain a lot of files (thumbnails).
Is there anyway to use the script to browse my local disk, get the file names and put them using FTP?
No trouble using the ftp_ functions, just dont know how to (if possible) read the contents of some directory in my local hard disk.
I would like to upload a dir that contains a lot of files (pictures) and another subdir that also contain a lot of files (thumbnails).
Is there anyway to use the script to browse my local disk, get the file names and put them using FTP?
No trouble using the ftp_ functions, just dont know how to (if possible) read the contents of some directory in my local hard disk.