Hi,
I'm building a site where among other things, the user (librarian) can see
if a file has been mounted on a local webserver for students to download. I
could provide a link so they can see if the file (pdf) can be downloaded,
but I'd rather just say 'yes' or 'no'.
This requires the page doing
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 6:4
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:
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] checki
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 Message-
Hello wondering if anyone has an answer to a problem that has risen during
the testing phase of an application migration.
Recently we have migrated php code from a Linux Server with a My SQL
database to php code on MS .NET platform with a MS SQL 7.0 database.
When we send email from the migrate
I have a Win2K box running php-4.3.0 and would like to install the php-4.3.0
to 4.3.1 patch. I've downloaded the "php-4.3.0-to-4.3.1.patch" file from
http://www.php.net, but can't find a thing on how to install it on a Windows
platform.
The closest thing I could find on news group posts is instruc
This patch is for the source code. You need to download the binary
distribution and replace your old files with the new. While you are doing
that you should download a newer version php-4.3.9 has been released and
so has php-5.0.2.
- Frank
> I have a Win2K box running php-4.3.0 and would like to
You don't need to copy any of the files from PHP-GTK to any system
directory. Just keep all files in the same directory. You can still ahe
your script files in another directory though.
The z in zlib does not relate to zend in any form or way. zlib is a
library for compression and decompression of
I am getting the following errors when I execute a php script.
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result
resource
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result
resource
Warning: mysql_num_rows(): supplied argument is not a valid MySQL r
10 matches
Mail list logo