Jump to content

Can php read a directory?


simply07

Recommended Posts

Hello,

I am trying to upload a large amount of files through an admin script. The smallest file i've been able to upload so far is 85mb.  this is a zip file with abotu 50 pictures. ( i have set_ini to control the timeouts and the file upload size)

 

I was wondering if, instead of upload the photos as one big zip folder, is it possible to read a directory on the users computer and upload what is in there?

 

ie: the user specifies a folder and then the script read the files, one by one, and uploads them to the server?

 

Is it possible to do this?

If not, does anyone know of any script/app that allows to upload large files.

 

Thanks to anyone who can help

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/114876-can-php-read-a-directory/
Share on other sites

Not with pure php. Since it executes on the server, it can't reach out to a user's computer and do things. You'd need to look into a Java/Javascript solution.

 

 

Of course, all of this is as far as I know. There may be a way, but if there is, nothing I've research has shown how to do it with only php.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.