Uploading an entire folder?
Uploading an entire folder?
am 02.12.2005 14:34:54 von Matthijs Holter
Is it possible to upload an entire folder - not just one file - using PHP?
Alternatively, is it possible to detect the contents of a specified folder
and upload all the files from that folder?
- Matthijs
Re: Uploading an entire folder?
am 02.12.2005 14:50:18 von Kimmo Laine
"Matthijs Holter" wrote in
message news:24Yjf.8564$qE.1893326@juliett.dax.net...
> Is it possible to upload an entire folder - not just one file - using PHP?
>
> Alternatively, is it possible to detect the contents of a specified folder
> and upload all the files from that folder?
>
I'm assuming you mean that upload from client to server. The problem is that
the files are at client, and php only operates in the server. I have seen
something like uploading multiple files, but that required an ActiveX
component, which has nothing to do with php.
When uploading files, there's always the security-issue. User has to be the
person controlling which files to upload and which not. For large file
transfers there are alternative protocols such as ftp, which is more
suitable for uploading batches of files.
--
"En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirviö
antaatulla.sikanautaa@gmail.com.NOSPAM.invalid
Re: Uploading an entire folder?
am 02.12.2005 14:52:53 von Hilarion
> Is it possible to upload an entire folder - not just one file - using PHP?
>
> Alternatively, is it possible to detect the contents of a specified folder
> and upload all the files from that folder?
Upload from where to where? If PHP works on a server, then only upload
action it can perform is uploading data to some other server (in this case
it can upload as many files as it "wants"). If you are talking about
uploading to PHP server by HTTP, then PHP has not much to do here (it works
AFTER the upload has been made). What gets uploaded depends only on the
client who does the upload (web browser client).
Hilarion
Re: Uploading an entire folder?
am 10.01.2006 04:05:25 von Jim Michaels
I have also found there is a limit on the total size of the upload if I
remember right.
"Hilarion" wrote in message
news:dmpji8$36d$1@news.onet.pl...
>> Is it possible to upload an entire folder - not just one file - using
>> PHP?
>>
>> Alternatively, is it possible to detect the contents of a specified
>> folder and upload all the files from that folder?
>
>
> Upload from where to where? If PHP works on a server, then only upload
> action it can perform is uploading data to some other server (in this case
> it can upload as many files as it "wants"). If you are talking about
> uploading to PHP server by HTTP, then PHP has not much to do here (it
> works
> AFTER the upload has been made). What gets uploaded depends only on the
> client who does the upload (web browser client).
>
> Hilarion
Re: Uploading an entire folder?
am 10.01.2006 04:07:19 von Jim Michaels
from the default PHP.INI,
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
"Matthijs Holter" wrote in
message news:24Yjf.8564$qE.1893326@juliett.dax.net...
> Is it possible to upload an entire folder - not just one file - using PHP?
>
> Alternatively, is it possible to detect the contents of a specified folder
> and upload all the files from that folder?
>
> - Matthijs
>