RE: [PHP] Readdir
If you are working in pure PHP5 OOP, you could like to try the new SPL iterators.
see
http://www.phpro.org/tutorials/Introduction-to-SPL.html#12
vincent
-----Original Message-----
From: Tom Chubb [
mailto:tomchubb@xxxxxxxxx]
Sent: Tue 28/11/2006 9:55
To: [php] PHP General List
Subject: [PHP] Readdir
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
--
PHP General Mailing List (
http://www.php.net/)
To unsubscribe, visit:
http://www.php.net/unsub.php
.
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: PHP and upload
... You should check what PHP is doing. ... The PDF document is created by OpenOffice 2.0 from a MS Word document. ... even if you upload it. ... The mime type of the file, if the browser provided this information. ... (comp.lang.php) - Re: Chmod
... Jerry Stuckle wrote: ... still be able to create the folder in PHP from a web page (so it's running as ... you to be able to upload files through the website. ... (comp.lang.php) - Re: Chmod
... still be able to create the folder in PHP from a web page (so it's running as ... JDS Computer Training Corp. ... you to be able to upload files through the website. ... (comp.lang.php) - Re: [PHP] Uploading into website directory for Php files
... How do I upload the include files into my Include ... upload the file into that include folder which is .:/include:/usr/ lib/php ... Sent from the PHP - General mailing list archive at Nabble.com. ... I'm not sure if they are chrooting something or if it's one of the base_dir things, but your web root is your root so you don't have access to /usr or anything else on the servers file system. ... (php.general) |
|