RE: [PHP-WIN] checking file is mounted at the end of a url

2004-10-20 Thread Mike
If you know what the local file name and path are supposed to be, then you should be able to use file_exists() for that task. http://us2.php.net/manual/en/function.file-exists.php -M -Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 20, 2004

RE: [PHP-WIN] checking file is mounted at the end of a url

2004-10-20 Thread George Pitcher
Mike, Thanks, but it's not a local file. I host my service, but the file being cked is (not) mounted on the users' own university website. So I thnk its more a case or url-checking. I've tested file_exists using the url and that doesn't work. Cheers George -Original Message- From:

RE: [PHP-WIN] checking file is mounted at the end of a url -- SOLVED

2004-10-20 Thread George Pitcher
Thanks for moving me in the right direction. fopen() will test the existence of a file at the end of a url. Cheers George -Original Message- From: Mike [mailto:[EMAIL PROTECTED] Sent: 20 October 2004 3:24 pm To: 'George Pitcher'; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] checking

RE: [PHP-WIN] checking file is mounted at the end of a url

2004-10-20 Thread Mike
In that case, try using fopen() http://us2.php.net/manual/en/function.fopen.php You should be able to check the file handle and check for success or failure and simply close it after the check is complete. Just have to have allow_url_fopen enabled in PHP to do so. -M -Original