Re: [PHP] Error Reporting for file commands

2006-08-04 Thread Richard Lynch
On Tue, July 25, 2006 10:32 am, James Nunnerley wrote: > We've created a file manager which allows users to access their web > space on > a server. It's working brilliantly, except that it would seem there > are > some caching issues, either by the system cache or the web server > cache that > are

Re: [PHP] RE: Spam:[PHP] Error Reporting for file commands

2006-07-25 Thread Jochem Maas
James Nunnerley wrote: >> [snip] >> When the script tries to delete a file, we always check (using >> file_exists) to see whether the file exists before it's deleted. >> >> The check comes back true, but the unlink then fails, saying no file or >> directory there! >> [/snip] >> >> Could you please

[PHP] RE: Spam:[PHP] Error Reporting for file commands

2006-07-25 Thread James Nunnerley
> [snip] > When the script tries to delete a file, we always check (using > file_exists) to see whether the file exists before it's deleted. > > The check comes back true, but the unlink then fails, saying no file or > directory there! > [/snip] > > Could you please post the code you are using to c

Re: [PHP] Error Reporting for file commands

2006-07-25 Thread Jon Anderson
You could try prefixing the unlink function call with an @: if (file_exists($fn)) { @unlink($fn); } The @ should suppress any errors. jon James Nunnerley wrote: We've created a file manager which allows users to access their web space on a server. It's working brilliantly, except that it

[PHP] Error Reporting for file commands

2006-07-25 Thread James Nunnerley
We've created a file manager which allows users to access their web space on a server. It's working brilliantly, except that it would seem there are some caching issues, either by the system cache or the web server cache that are causing us a headache. When the script tries to delete a file, we a