Re: How to dectect if a file exist in specific Folder
| From: | Jason Wong | Date: | Wed, 10 Jul 2002 08:35:24 +0000 |
| Subject: | Re: How to dectect if a file exist in specific Folder | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-106714@lists.php.net to get a copy of this message | ||
On Wednesday 10 July 2002 16:26, Jack wrote:
> Dear all
> I had a folder which contain some pdf report, the name of the Report will
> be
>
> xxx.xxx.20020702.pdf.
>
> Here is what i want to do :
> 1. there will be a Form let user to submit the date of reports that he /
> she wants to view.
> 2. the php will get the xxx.xxx from a mysql database and add the date at
> the end of the string as the file name.
> 3. If the filename exist in that specific folder, then it will show a
> hyperlink for each exist report, otherwise nothing will shows up!
>
> I want to know how i can use php to detect if such file is exist in that
> specific Folder?
is_file()
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
One father is more than a hundred schoolmasters.
-- George Herbert
*/