Re: detect if file exist

From: Date: Sun, 21 May 2006 16:53:52 +0000
Subject: Re: detect if file exist
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-236576@lists.php.net to get a copy of this message
On 5/21/06, Ryan A <genphp@yahoo.com> wrote:
Ummmm file_exists() ?
file_exists doesn't help here since the filename of the file is not known. glob or the *dir functions do the trick. Rabin [please bottom-post...]
A simple search on the search engines for "php file exists" gave me loads of results... Dude, dont be lazy and just post here or you are going to get a lot of grief...do a search on web then come back if you dont find anything or have questions... And trust me, this is one of the more polite answer you will get or would have gotten. -Ryan --- Alain Roger <raf.news@gmail.com> wrote: Hi, i have 1 folder, in this folder sometime a file can be sometimes not... 1. i would like to detect if the folder contains a file or not. only 1 file can be in this folder but i do not know the name of this file, and the extension should be xls. when this file exists, i want to display the contents of this file to my web site, how can i do it ? 2. could you advise me on some good tutorial PHP+Excel ? thanks a lot, Alain


« previous php.general (#236576) next »