Re: [PHP] detect if file exist

2006-05-22 Thread Richard Lynch
On Sun, May 21, 2006 8:52 am, Alain Roger wrote: > 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

Re: [PHP] detect if file exist

2006-05-21 Thread tedd
At 3:52 PM +0200 5/21/06, Alain Roger 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.

Re: [PHP] detect if file exist

2006-05-21 Thread Ryan A
> On 5/21/06, Ryan A <[EMAIL PROTECTED]> wrote: > > U 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 > Its all connected, had you searched the SEs first, your would have found file_exists

Re: [PHP] detect if file exist

2006-05-21 Thread Rabin Vincent
On 5/21/06, Ryan A <[EMAIL PROTECTED]> wrote: U 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 r

Re: [PHP] detect if file exist

2006-05-21 Thread Rabin Vincent
On 5/21/06, Alain Roger <[EMAIL PROTECTED]> wrote: 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.

Re: [PHP] detect if file exist

2006-05-21 Thread Ryan A
U file_exists() ? 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

[PHP] detect if file exist

2006-05-21 Thread Alain Roger
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 c