[PHP-WIN] Re: Re: Yet another MySQL+PHP5 issue

2004-10-31 Thread colin_e
Further to the discussion begun by Jim Stapleton, I have worked out one more wrinkle. Some apps install elements in the path using shell variables, i.e.- PATH Entry Resolves To - %SystemR

[PHP-WIN] Re: Trouble with the ISAPI in PHP4

2004-10-31 Thread George Hester
OK it's fixed. Thamks to all that provided some help. I put all the files in /dll and /sapi in the root. Just basically followed the directions here: http://us2.php.net/install.windows.iis -- George Hester __ "George Hester" <[EMAIL PROTECTED]> wrote in messag

[PHP-WIN] mysql_fetch_assoc(): 3 is not a valid MySQL result resource

2004-10-31 Thread Ross Hulford
This is my code... It displays one result then thows up the following error Warning: mysql_fetch_assoc(): 3 is not a valid MySQL result resource in c:\inetpub\wwwroot\testy\Untitled-1.php on line 29 -- PHP Windows Mailing List (http://www.php.net/) To uns

[PHP-WIN] session expiration problem

2004-10-31 Thread nightwalker
Hi. When I set session expiration using: ini_set('session.gc_maxlifetime','3'); and I refresh page after 10 seconds or even change my system time to a few hours ahead, the session variables still exist. It doesn't work even if I change it directly in php.ini. I am running the Apache 2 with PHP

[PHP-WIN] Problems with mysql_num-rows()

2004-10-31 Thread Arne Essa Madsen
I have the following problem: This one does not work: $query = "SELECT * from user where name='$userid' and pass=password('$password')"; $result = mysql_query($query, $link); $num_rows = mysql_num_rows($result); I get this error message: Warning: mysql_num_rows(): supplied argument is not a

[PHP-WIN] Displaying An Image / Non-Web accessible Dir

2004-10-31 Thread Armando
Greetings! I'm porting all my old ASP websites to PHP and have run into a small problem. One of my pages is a gallery in which images can (should) only be viewed by authenticated users in my MySQL database. The images are stored in a non-web accessible directory. For example.. say my root website

RE: [PHP-WIN] Displaying An Image / Non-Web accessible Dir

2004-10-31 Thread Warren Vail
I would thing you could do something similar using the GD "image" functions, http://www.php.net/manual/en/ref.image.php in your html page code and this module would basically; 1. determine the type of image (jpec, gif, etc) (note you can pass ?parms in get format to your imagemodule

RE: [PHP-WIN] Problems with mysql_num-rows()

2004-10-31 Thread Svensson, B.A.T. (HKG)
Do: $query = "SELECT * from user where name='$userid' and pass=password('$password')"; echo $query. ".r\n"; See what the string looks like, and if you can replicate the problem by trying to execute that string in the mysql.exe command line tool. You ererror suggest that you have some kind of