php-windows Digest 21 Oct 2004 05:07:42 -0000 Issue 2435
Topics (messages 24779 through 24787):
Re: checking file is mounted at the end of a url
24779 by: Mike
24780 by: George Pitcher
24782 by: Mike
Re: checking file is mounted at the end of a url -- SOLVED
24781 by: George Pitcher
PHP email issue (sent time wrong)
24783 by: PHPDiscuss - PHP Newsgroups and mailing lists
Installing PHP Patches on a Win2K box
24784 by: Keith E.
24785 by: Frank M. Kromann
Re: zlib.dll
24786 by: Frank M. Kromann
MySQL Errors
24787 by: MikeA
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
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:47 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] checking file is mounted at the end of a url
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 some sort of url test and reporting yes/no
depending on the code being sent back. I found something called linkchecker
at Hotscripts.com but when the file doesn't exist, it tries to download
itself instead.
The user will be accessing my server but will be checking something at their
location. I'm sure this must be possible - can anyone point me in the right
direction?
Cheers
George
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
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: Mike [mailto:[EMAIL PROTECTED]
> Sent: 20 October 2004 3:24 pm
> To: 'George Pitcher'; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] checking file is mounted at the end of a url
>
>
> 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:47 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] checking file is mounted at the end of a url
>
> 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 some sort of url test and reporting yes/no
> depending on the code being sent back. I found something called
> linkchecker
> at Hotscripts.com but when the file doesn't exist, it tries to download
> itself instead.
>
> The user will be accessing my server but will be checking
> something at their
> location. I'm sure this must be possible - can anyone point me in
> the right
> direction?
>
> Cheers
>
> George
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
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-----
From: George Pitcher [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 10:28 AM
To: Mike; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] checking file is mounted at the end of a url
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: Mike [mailto:[EMAIL PROTECTED]
> Sent: 20 October 2004 3:24 pm
> To: 'George Pitcher'; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] checking file is mounted at the end of a url
>
>
> 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:47 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] checking file is mounted at the end of a url
>
> 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 some sort of url test and reporting yes/no
> depending on the code being sent back. I found something called
> linkchecker
> at Hotscripts.com but when the file doesn't exist, it tries to download
> itself instead.
>
> The user will be accessing my server but will be checking
> something at their
> location. I'm sure this must be possible - can anyone point me in
> the right
> direction?
>
> Cheers
>
> George
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
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 file is mounted at the end of a url
>
>
> 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:47 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] checking file is mounted at the end of a url
>
> 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 some sort of url test and reporting yes/no
> depending on the code being sent back. I found something called
> linkchecker
> at Hotscripts.com but when the file doesn't exist, it tries to download
> itself instead.
>
> The user will be accessing my server but will be checking
> something at their
> location. I'm sure this must be possible - can anyone point me in
> the right
> direction?
>
> Cheers
>
> George
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin 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 migrated code on our MS.Net platform with a
SQL server database the sent time is always 11 hours in the past.
Currently our SQL server is on GMT - 6hours
Linux machine time is set as follows
date command show = CDT local time
eta/sysconfig with a cat clock command
- Americas/Chicago time zone
- UTC = False
- ARC = False
Basically trying to find out if anyone has encountered a problem such as
this before or if anyone knows a fix for this problem
--- End Message ---
--- Begin Message ---
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 instructions to
patch < rfc1867.c.diff-4.1.x
Which fails at the patch command.
The first few lines of the "php-4.3.0-to-4.3.1.patch" file are:
diff -u -r php-4.3.0/NEWS php-4.3.1/NEWS
--- php-4.3.0/NEWS Fri Dec 27 06:02:52 2002
+++ php-4.3.1/NEWS Sun Feb 16 16:48:27 2003
@@ -1,5 +1,8 @@
PHP 4
...
Which don't give me a clue as to what to do.
Any guidance would be greatly appreciated.
Thanks in Advance.
Keith E.
--- End Message ---
--- Begin Message ---
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 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 instructions to
>
>
> patch < rfc1867.c.diff-4.1.x
>
> Which fails at the patch command.
>
> The first few lines of the "php-4.3.0-to-4.3.1.patch" file are:
> diff -u -r php-4.3.0/NEWS php-4.3.1/NEWS
>
> --- php-4.3.0/NEWS Fri Dec 27 06:02:52 2002
>
> +++ php-4.3.1/NEWS Sun Feb 16 16:48:27 2003
>
> @@ -1,5 +1,8 @@
>
> PHP 4
>
> ...
>
> Which don't give me a clue as to what to do.
>
> Any guidance would be greatly appreciated.
>
> Thanks in Advance.
>
> Keith E.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
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 files.
- Frank
> OK, so I installed the windows PHP-GTK modules (comes with PHP4) on a
> windows XP machine where I was also running the FoxServ windows version
of
> php/python/mysql, placing a zlib file from the GTK package into the
> windows/system directory, according to the GTK instructions, suddenly
my
> server environment no longer works. One confusion factor was the alert
from
> from XP-sp2 system complaining of a security problem with apache.
>
> So I did a search for zlib files on my c drive and came up with a
surprising
> list of locations;
>
> Mysql has one in mysql\lib\debug
> Python has one python\Doc\lib (module-zlib and test_zlib.py)
> CuteFTP Pro in its program directory
> CuteZIP has one in its program directory (ZLIB.dll all caps)
> Dreamweaver MX2004 in its program directory
> and ZlibF.dll in its Configuration\Content\Reference\PHP library
> QuickBooks Pro (zlib32.dll in its program directory)
> Microsoft Office ACWZLIB.dll in its directory (Program Files\Microsoft
> Office\Office\1033)(shows access icon)
>
> Error received was the following;
>
> ---------------- snip ------------------------------
> Apache HTTP Server has encountered a problem and needs to close. We are
> sorry for the inconvenience.
>
> Error signature
>
> szAppName : Apache.exe szAppVer : 2.0.39.0 szModName : php4apache2.dll
>
> szModVer : 0.0.0.0 offset : 00001ad9
>
> Asking me if I wanted to send and error report to microsoft, with page
not
> found in the browser.
>
> ------------------- snip ----------------------------
>
> Here are my questions;
>
> Are these really the same files, if not are they similar, if not does
the Z
> in zlib relate to zend at all?
>
> Warren Vail
>
--- End Message ---
--- Begin Message ---
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 result
resource
What do I need to make this work? I am new to PHP. I read something about
mysql.class.php somewhere. Do I need that somewhere? Do I put an include
in the main script? Where does mysql.class.php go directory-wise?
I am sure I am not giving enough information and may not be explaining it
good enough. My apologies. Again, I am new at this.
I appreciate any help. Thank you in advance.
Mike
--- End Message ---