Re: [PHP] Readdir
something like this?
while ( gettype ( $file = @readdir (@opendir ( $dirname )) ) != boolean ){
check if correct extension, else -> something completely else?
}
On Tuesday 28 November 2006 09:55, Tom Chubb wrote:
What would be the best way to retrieve a list of files from an upload
folder that are called "id" where the extension could be .doc .txt or
.pdf
For example, I have a folder where people can upload a document and
the document is renamed as their user id. They can upload a PDF, DOC
or TXT file. They may wish to upload one of each. I am using
file_exists for each case, but is there an easier/tidier way of doing
it?
Thanks in advance,
Tom
--
---
Børge
Kennel Arivene
http://www.arivene.net
---
.
Relevant Pages
- Re: Hyperlinks
... You have never told us how you are producing your pdf file, ... that you are adding an extension when the pdf maker already adds one. ... the download folder and then went to the root folder and deleted and ... Log on to your host, delete the old file, and upload the correct file. ... (microsoft.public.publisher.webdesign) - Re: Convert Publisher file to a PDF File
... then you upload the PDF files that you want available for downloading to ... that folder, not the index_files folder. ... If you update the site and upload a new index_files ... Publisher index.htm file and the index_files folder. ... (microsoft.public.publisher.webdesign) - Design question!, uploading documents to webserver
... where admins will upload documents related to ... Documents will be in .pdf format. ... Documents will not be stored in database but instead uploaded ... to a folder on the webserver. ... (microsoft.public.dotnet.framework.aspnet) - Re: Hyperlink help
... I would suggest that you do not include the PDF ... That folder will be changed/overwritten ... each time you update your website, and you do not want to upload the PDF ... If you have a follow up question or other questions about Publisher webs, ... (microsoft.public.publisher) - Re: Design question!, uploading documents to webserver
... Users will not even know about /Upload/ folder existense. ... where admins will upload documents related to users of the website. ... Documents will be in .pdf format. ... Documents will not be stored in database but instead uploaded to a folder on the webserver. ... (microsoft.public.dotnet.framework.aspnet) |
|