Re: [PHP] Re: PHP 5, Windows, and MySQL
On Tue, August 22, 2006 8:12 am, mbneto wrote: > I did that but my apache+php still does not recognize the mysql > extension. > I get no error messages while staring the server but phpInfo does not > show > the mysql support... > > php 5.1.4, mysql 5.0.22, apache 2.0.58 Check the apache error_log file for error messages after a re-start. Check the phpinfo() output for where your php.ini file should be, and move your php.ini file to that location. Check the extension_dir setting in php.ini, and be sure that directory is READABLE by the Apache User/Group setup in httpd.conf Make sure all parent directories to extension_dir are also readable/executable (or whatever it is on Windoze) so that PHP can read the DLLs. > On 6/27/06, Jeremy Schreckhise <[EMAIL PROTECTED]> wrote: >> >> Here is the direct download portal for the two corrected crucial >> .dlls. >> >> >> http://dev.mysql.com/downloads/connector/php/ >> >> -Original Message- >> From: Jeremy Schreckhise [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, June 27, 2006 10:14 AM >> To: php-general@lists.php.net >> Subject: [PHP] Re: PHP 5, Windows, and MySQL >> >> I ran into the same problems; here is how I solved them. >> >> 1. Install MySQL 5 >> 2. Install PHP 5 >> 3. Modify php.ini extensions directive to point to >> php_mysql.dll (the >> one that was packaged with php 5) >> 4. Here is the tricky one make sure mysql is finding the >> libmysql.dll >> packaged WITH MYSQL NOT PHP; >> 5. net stop mysql >> 6. net start mysql >> 7. work hard; play hard >> >> >> -Original Message- >> From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED] >> Sent: Monday, June 26, 2006 8:13 PM >> To: php-general@lists.php.net >> Subject: [PHP] Re: PHP 5, Windows, and MySQL >> >> I've got it running fine on my windows. >> >> Mysql 5.0.19 >> PHP 5.1.4 >> >> I just activate php_mysql.dll and php_mysqli.dll. >> >> Which versions of php and mysql are you using? >> >> ""Beauford"" <[EMAIL PROTECTED]> escreveu na mensagem >> >> news:!&!AAAYAFzLTDhDwWBHpzgX5w1qDiPigAAAEJiz/MDHLf9Fmsyy >> [EMAIL PROTECTED] >> > Aside from my previous gd problems, here's another problem. It >> appears >> > that >> > PHP5 (for Windows anyways) does not support MySQL (which in itself >> is >> > riduculous), but here's my problem. I have a script I just >> downloaded >> > that works perfectly on Linux/Apche/MySQL/PHP5, but when I run it >> on >> > Windows 2000 with PHP 4.4 I get a page full of errors. Lets forget >> > about the errors, does anyone have any idea how to get PHP5 and >> MySQL >> > to work on Windows. I have already tried 100 different variations >> of >> > things from information I found searching out this problem, but >> maybe >> > someone has a new idea. >> > >> > If it were me I'd just run this site on Linux, but this is for a >> > friend who wants to use IIS. If your curious the errors are below. >> > >> > Thanks >> > >> > B >> > >> > Warning: mysql_numrows(): supplied argument is not a valid MySQL >> > result resource in >> G:\Websites\Webtest\caalogin\include\database.php >> > on line 207 >> > >> > Warning: mysql_numrows(): supplied argument is not a valid MySQL >> > result resource in >> G:\Websites\Webtest\caalogin\include\database.php >> > on line 218 >> > >> > Warning: session_start(): Cannot send session cookie - headers >> already >> > sent by (output started at >> > G:\Websites\Webtest\caalogin\include\database.php:207) >> > in G:\Websites\Webtest\caalogin\include\session.php on line 46 >> > >> > Warning: session_start(): Cannot send session cache limiter - >> headers >> > already sent (output started at >> > G:\Websites\Webtest\caalogin\include\database.php:207) in >> > G:\Websites\Webtest\caalogin\include\session.php on line 46 >> > >> > Warning: mysql_numrows(): supplied argument is not a valid MySQL >> > result resource in >> G:\Websites\Webtest\caalogin\include\database.php >> > on line 218 >> > >> > Warning: mysql_numrows(): supplied argument is not a valid MySQL >> > result resource in >> G:\Websites\Webtest\caalogin\include\database.php >> > on line 207 >> > >> > Warning: mysql_numrows(): supplied argument is not a valid MySQL >> > result resource in >> G:\Websites\Webtest\caalogin\include\database.php >> > on line 218 >> >> -- >> PHP General Mailing List (http://www.php.net/) To unsubscribe, >> visit: >> http://www.php.net/unsub.php >> >> -- >> PHP General Mailing List (http://www.php.net/) To unsubscribe, >> visit: >> http://www.php.net/unsub.php >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PHP 5, Windows, and MySQL
Hi, I did that but my apache+php still does not recognize the mysql extension. I get no error messages while staring the server but phpInfo does not show the mysql support... php 5.1.4, mysql 5.0.22, apache 2.0.58 On 6/27/06, Jeremy Schreckhise <[EMAIL PROTECTED]> wrote: Here is the direct download portal for the two corrected crucial .dlls. http://dev.mysql.com/downloads/connector/php/ -Original Message- From: Jeremy Schreckhise [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 10:14 AM To: php-general@lists.php.net Subject: [PHP] Re: PHP 5, Windows, and MySQL I ran into the same problems; here is how I solved them. 1. Install MySQL 5 2. Install PHP 5 3. Modify php.ini extensions directive to point to php_mysql.dll (the one that was packaged with php 5) 4. Here is the tricky one make sure mysql is finding the libmysql.dll packaged WITH MYSQL NOT PHP; 5. net stop mysql 6. net start mysql 7. work hard; play hard -Original Message- From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 8:13 PM To: php-general@lists.php.net Subject: [PHP] Re: PHP 5, Windows, and MySQL I've got it running fine on my windows. Mysql 5.0.19 PHP 5.1.4 I just activate php_mysql.dll and php_mysqli.dll. Which versions of php and mysql are you using? ""Beauford"" <[EMAIL PROTECTED]> escreveu na mensagem news:!&!AAAYAFzLTDhDwWBHpzgX5w1qDiPigAAAEJiz/MDHLf9Fmsyy [EMAIL PROTECTED] > Aside from my previous gd problems, here's another problem. It appears > that > PHP5 (for Windows anyways) does not support MySQL (which in itself is > riduculous), but here's my problem. I have a script I just downloaded > that works perfectly on Linux/Apche/MySQL/PHP5, but when I run it on > Windows 2000 with PHP 4.4 I get a page full of errors. Lets forget > about the errors, does anyone have any idea how to get PHP5 and MySQL > to work on Windows. I have already tried 100 different variations of > things from information I found searching out this problem, but maybe > someone has a new idea. > > If it were me I'd just run this site on Linux, but this is for a > friend who wants to use IIS. If your curious the errors are below. > > Thanks > > B > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 207 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 218 > > Warning: session_start(): Cannot send session cookie - headers already > sent by (output started at > G:\Websites\Webtest\caalogin\include\database.php:207) > in G:\Websites\Webtest\caalogin\include\session.php on line 46 > > Warning: session_start(): Cannot send session cache limiter - headers > already sent (output started at > G:\Websites\Webtest\caalogin\include\database.php:207) in > G:\Websites\Webtest\caalogin\include\session.php on line 46 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 218 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 207 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 218 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: PHP 5, Windows, and MySQL
Neither one will work. -Original Message- From: Jeremy Schreckhise [mailto:[EMAIL PROTECTED] Sent: June 27, 2006 11:37 AM To: 'Beauford'; php-general@lists.php.net Subject: RE: [PHP] Re: PHP 5, Windows, and MySQL But is libmysql.dll the dll from mysql; the one packaged with php 5 will not work. Jeremy Schreckhise, M.B.A -Original Message- From: Beauford [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 10:33 AM To: php-general@lists.php.net Subject: RE: [PHP] Re: PHP 5, Windows, and MySQL Done all this, I spent another two hours last night and have gone back to PHP 4.4 which works perfect. I have followed every article I could find to the 'T' and it just refuses to work. I have version 4.1.15 of MySQL. I'm afraid to upgrade that as who know what mess it will cause. libmysql.dll is in /winnt, /system, /sytem32, /php and php is in my path. If it can't find it it ain't looking hard enough. I'll just keep it the way it is for now - can't afford anymore time on it. Thanks -Original Message- From: Jeremy Schreckhise [mailto:[EMAIL PROTECTED] Sent: June 27, 2006 11:14 AM To: php-general@lists.php.net Subject: [PHP] Re: PHP 5, Windows, and MySQL I ran into the same problems; here is how I solved them. 1. Install MySQL 5 2. Install PHP 5 3. Modify php.ini extensions directive to point to php_mysql.dll (the one that was packaged with php 5) 4. Here is the tricky one make sure mysql is finding the libmysql.dll packaged WITH MYSQL NOT PHP; 5. net stop mysql 6. net start mysql 7. work hard; play hard -Original Message- From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 8:13 PM To: php-general@lists.php.net Subject: [PHP] Re: PHP 5, Windows, and MySQL I've got it running fine on my windows. Mysql 5.0.19 PHP 5.1.4 I just activate php_mysql.dll and php_mysqli.dll. Which versions of php and mysql are you using? ""Beauford"" <[EMAIL PROTECTED]> escreveu na mensagem news:!&!AAAYAFzLTDhDwWBHpzgX5w1qDiPigAAAEJiz/MDHLf9Fmsyy [EMAIL PROTECTED] > Aside from my previous gd problems, here's another problem. It appears > that > PHP5 (for Windows anyways) does not support MySQL (which in itself is > riduculous), but here's my problem. I have a script I just downloaded > that works perfectly on Linux/Apche/MySQL/PHP5, but when I run it on > Windows 2000 with PHP 4.4 I get a page full of errors. Lets forget > about the errors, does anyone have any idea how to get PHP5 and MySQL > to work on Windows. I have already tried 100 different variations of > things from information I found searching out this problem, but maybe > someone has a new idea. > > If it were me I'd just run this site on Linux, but this is for a > friend who wants to use IIS. If your curious the errors are below. > > Thanks > > B > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 207 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 218 > > Warning: session_start(): Cannot send session cookie - headers already > sent by (output started at > G:\Websites\Webtest\caalogin\include\database.php:207) > in G:\Websites\Webtest\caalogin\include\session.php on line 46 > > Warning: session_start(): Cannot send session cache limiter - headers > already sent (output started at > G:\Websites\Webtest\caalogin\include\database.php:207) in > G:\Websites\Webtest\caalogin\include\session.php on line 46 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 218 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 207 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 218 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: PHP 5, Windows, and MySQL
But is libmysql.dll the dll from mysql; the one packaged with php 5 will not work. Jeremy Schreckhise, M.B.A -Original Message- From: Beauford [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 10:33 AM To: php-general@lists.php.net Subject: RE: [PHP] Re: PHP 5, Windows, and MySQL Done all this, I spent another two hours last night and have gone back to PHP 4.4 which works perfect. I have followed every article I could find to the 'T' and it just refuses to work. I have version 4.1.15 of MySQL. I'm afraid to upgrade that as who know what mess it will cause. libmysql.dll is in /winnt, /system, /sytem32, /php and php is in my path. If it can't find it it ain't looking hard enough. I'll just keep it the way it is for now - can't afford anymore time on it. Thanks -Original Message- From: Jeremy Schreckhise [mailto:[EMAIL PROTECTED] Sent: June 27, 2006 11:14 AM To: php-general@lists.php.net Subject: [PHP] Re: PHP 5, Windows, and MySQL I ran into the same problems; here is how I solved them. 1. Install MySQL 5 2. Install PHP 5 3. Modify php.ini extensions directive to point to php_mysql.dll (the one that was packaged with php 5) 4. Here is the tricky one make sure mysql is finding the libmysql.dll packaged WITH MYSQL NOT PHP; 5. net stop mysql 6. net start mysql 7. work hard; play hard -Original Message- From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 8:13 PM To: php-general@lists.php.net Subject: [PHP] Re: PHP 5, Windows, and MySQL I've got it running fine on my windows. Mysql 5.0.19 PHP 5.1.4 I just activate php_mysql.dll and php_mysqli.dll. Which versions of php and mysql are you using? ""Beauford"" <[EMAIL PROTECTED]> escreveu na mensagem news:!&!AAAYAFzLTDhDwWBHpzgX5w1qDiPigAAAEJiz/MDHLf9Fmsyy [EMAIL PROTECTED] > Aside from my previous gd problems, here's another problem. It appears > that > PHP5 (for Windows anyways) does not support MySQL (which in itself is > riduculous), but here's my problem. I have a script I just downloaded > that works perfectly on Linux/Apche/MySQL/PHP5, but when I run it on > Windows 2000 with PHP 4.4 I get a page full of errors. Lets forget > about the errors, does anyone have any idea how to get PHP5 and MySQL > to work on Windows. I have already tried 100 different variations of > things from information I found searching out this problem, but maybe > someone has a new idea. > > If it were me I'd just run this site on Linux, but this is for a > friend who wants to use IIS. If your curious the errors are below. > > Thanks > > B > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 207 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 218 > > Warning: session_start(): Cannot send session cookie - headers already > sent by (output started at > G:\Websites\Webtest\caalogin\include\database.php:207) > in G:\Websites\Webtest\caalogin\include\session.php on line 46 > > Warning: session_start(): Cannot send session cache limiter - headers > already sent (output started at > G:\Websites\Webtest\caalogin\include\database.php:207) in > G:\Websites\Webtest\caalogin\include\session.php on line 46 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 218 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 207 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 218 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: PHP 5, Windows, and MySQL
Done all this, I spent another two hours last night and have gone back to PHP 4.4 which works perfect. I have followed every article I could find to the 'T' and it just refuses to work. I have version 4.1.15 of MySQL. I'm afraid to upgrade that as who know what mess it will cause. libmysql.dll is in /winnt, /system, /sytem32, /php and php is in my path. If it can't find it it ain't looking hard enough. I'll just keep it the way it is for now - can't afford anymore time on it. Thanks -Original Message- From: Jeremy Schreckhise [mailto:[EMAIL PROTECTED] Sent: June 27, 2006 11:14 AM To: php-general@lists.php.net Subject: [PHP] Re: PHP 5, Windows, and MySQL I ran into the same problems; here is how I solved them. 1. Install MySQL 5 2. Install PHP 5 3. Modify php.ini extensions directive to point to php_mysql.dll (the one that was packaged with php 5) 4. Here is the tricky one make sure mysql is finding the libmysql.dll packaged WITH MYSQL NOT PHP; 5. net stop mysql 6. net start mysql 7. work hard; play hard -Original Message- From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 8:13 PM To: php-general@lists.php.net Subject: [PHP] Re: PHP 5, Windows, and MySQL I've got it running fine on my windows. Mysql 5.0.19 PHP 5.1.4 I just activate php_mysql.dll and php_mysqli.dll. Which versions of php and mysql are you using? ""Beauford"" <[EMAIL PROTECTED]> escreveu na mensagem news:!&!AAAYAFzLTDhDwWBHpzgX5w1qDiPigAAAEJiz/MDHLf9Fmsyy [EMAIL PROTECTED] > Aside from my previous gd problems, here's another problem. It appears > that > PHP5 (for Windows anyways) does not support MySQL (which in itself is > riduculous), but here's my problem. I have a script I just downloaded > that works perfectly on Linux/Apche/MySQL/PHP5, but when I run it on > Windows 2000 with PHP 4.4 I get a page full of errors. Lets forget > about the errors, does anyone have any idea how to get PHP5 and MySQL > to work on Windows. I have already tried 100 different variations of > things from information I found searching out this problem, but maybe > someone has a new idea. > > If it were me I'd just run this site on Linux, but this is for a > friend who wants to use IIS. If your curious the errors are below. > > Thanks > > B > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 207 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 218 > > Warning: session_start(): Cannot send session cookie - headers already > sent by (output started at > G:\Websites\Webtest\caalogin\include\database.php:207) > in G:\Websites\Webtest\caalogin\include\session.php on line 46 > > Warning: session_start(): Cannot send session cache limiter - headers > already sent (output started at > G:\Websites\Webtest\caalogin\include\database.php:207) in > G:\Websites\Webtest\caalogin\include\session.php on line 46 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 218 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 207 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 218 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: PHP 5, Windows, and MySQL
Here is the direct download portal for the two corrected crucial .dlls. http://dev.mysql.com/downloads/connector/php/ -Original Message- From: Jeremy Schreckhise [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 10:14 AM To: php-general@lists.php.net Subject: [PHP] Re: PHP 5, Windows, and MySQL I ran into the same problems; here is how I solved them. 1. Install MySQL 5 2. Install PHP 5 3. Modify php.ini extensions directive to point to php_mysql.dll (the one that was packaged with php 5) 4. Here is the tricky one make sure mysql is finding the libmysql.dll packaged WITH MYSQL NOT PHP; 5. net stop mysql 6. net start mysql 7. work hard; play hard -Original Message- From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 8:13 PM To: php-general@lists.php.net Subject: [PHP] Re: PHP 5, Windows, and MySQL I've got it running fine on my windows. Mysql 5.0.19 PHP 5.1.4 I just activate php_mysql.dll and php_mysqli.dll. Which versions of php and mysql are you using? ""Beauford"" <[EMAIL PROTECTED]> escreveu na mensagem news:!&!AAAYAFzLTDhDwWBHpzgX5w1qDiPigAAAEJiz/MDHLf9Fmsyy [EMAIL PROTECTED] > Aside from my previous gd problems, here's another problem. It appears > that > PHP5 (for Windows anyways) does not support MySQL (which in itself is > riduculous), but here's my problem. I have a script I just downloaded > that works perfectly on Linux/Apche/MySQL/PHP5, but when I run it on > Windows 2000 with PHP 4.4 I get a page full of errors. Lets forget > about the errors, does anyone have any idea how to get PHP5 and MySQL > to work on Windows. I have already tried 100 different variations of > things from information I found searching out this problem, but maybe > someone has a new idea. > > If it were me I'd just run this site on Linux, but this is for a > friend who wants to use IIS. If your curious the errors are below. > > Thanks > > B > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 207 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 218 > > Warning: session_start(): Cannot send session cookie - headers already > sent by (output started at > G:\Websites\Webtest\caalogin\include\database.php:207) > in G:\Websites\Webtest\caalogin\include\session.php on line 46 > > Warning: session_start(): Cannot send session cache limiter - headers > already sent (output started at > G:\Websites\Webtest\caalogin\include\database.php:207) in > G:\Websites\Webtest\caalogin\include\session.php on line 46 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 218 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 207 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 218 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP 5, Windows, and MySQL
I ran into the same problems; here is how I solved them. 1. Install MySQL 5 2. Install PHP 5 3. Modify php.ini extensions directive to point to php_mysql.dll (the one that was packaged with php 5) 4. Here is the tricky one make sure mysql is finding the libmysql.dll packaged WITH MYSQL NOT PHP; 5. net stop mysql 6. net start mysql 7. work hard; play hard -Original Message- From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 8:13 PM To: php-general@lists.php.net Subject: [PHP] Re: PHP 5, Windows, and MySQL I've got it running fine on my windows. Mysql 5.0.19 PHP 5.1.4 I just activate php_mysql.dll and php_mysqli.dll. Which versions of php and mysql are you using? ""Beauford"" <[EMAIL PROTECTED]> escreveu na mensagem news:!&!AAAYAFzLTDhDwWBHpzgX5w1qDiPigAAAEJiz/MDHLf9Fmsyy [EMAIL PROTECTED] > Aside from my previous gd problems, here's another problem. It appears > that > PHP5 (for Windows anyways) does not support MySQL (which in itself is > riduculous), but here's my problem. I have a script I just downloaded > that works perfectly on Linux/Apche/MySQL/PHP5, but when I run it on > Windows 2000 with PHP 4.4 I get a page full of errors. Lets forget > about the errors, does anyone have any idea how to get PHP5 and MySQL > to work on Windows. I have already tried 100 different variations of > things from information I found searching out this problem, but maybe > someone has a new idea. > > If it were me I'd just run this site on Linux, but this is for a > friend who wants to use IIS. If your curious the errors are below. > > Thanks > > B > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 207 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 218 > > Warning: session_start(): Cannot send session cookie - headers already > sent by (output started at > G:\Websites\Webtest\caalogin\include\database.php:207) > in G:\Websites\Webtest\caalogin\include\session.php on line 46 > > Warning: session_start(): Cannot send session cache limiter - headers > already sent (output started at > G:\Websites\Webtest\caalogin\include\database.php:207) in > G:\Websites\Webtest\caalogin\include\session.php on line 46 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 218 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 207 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL > result resource in G:\Websites\Webtest\caalogin\include\database.php > on line 218 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP 5, Windows, and MySQL
I've got it running fine on my windows. Mysql 5.0.19 PHP 5.1.4 I just activate php_mysql.dll and php_mysqli.dll. Which versions of php and mysql are you using? ""Beauford"" <[EMAIL PROTECTED]> escreveu na mensagem news:!&!AAAYAFzLTDhDwWBHpzgX5w1qDiPigAAAEJiz/[EMAIL PROTECTED] > Aside from my previous gd problems, here's another problem. It appears > that > PHP5 (for Windows anyways) does not support MySQL (which in itself is > riduculous), but here's my problem. I have a script I just downloaded that > works perfectly on Linux/Apche/MySQL/PHP5, but when I run it on Windows > 2000 > with PHP 4.4 I get a page full of errors. Lets forget about the errors, > does > anyone have any idea how to get PHP5 and MySQL to work on Windows. I have > already tried 100 different variations of things from information I found > searching out this problem, but maybe someone has a new idea. > > If it were me I'd just run this site on Linux, but this is for a friend > who > wants to use IIS. If your curious the errors are below. > > Thanks > > B > > Warning: mysql_numrows(): supplied argument is not a valid MySQL result > resource in G:\Websites\Webtest\caalogin\include\database.php on line 207 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL result > resource in G:\Websites\Webtest\caalogin\include\database.php on line 218 > > Warning: session_start(): Cannot send session cookie - headers already > sent > by (output started at > G:\Websites\Webtest\caalogin\include\database.php:207) > in G:\Websites\Webtest\caalogin\include\session.php on line 46 > > Warning: session_start(): Cannot send session cache limiter - headers > already sent (output started at > G:\Websites\Webtest\caalogin\include\database.php:207) in > G:\Websites\Webtest\caalogin\include\session.php on line 46 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL result > resource in G:\Websites\Webtest\caalogin\include\database.php on line 218 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL result > resource in G:\Websites\Webtest\caalogin\include\database.php on line 207 > > Warning: mysql_numrows(): supplied argument is not a valid MySQL result > resource in G:\Websites\Webtest\caalogin\include\database.php on line 218 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP 5, Windows, and MySQL
Beauford wrote: Aside from my previous gd problems, here's another problem. It appears that PHP5 (for Windows anyways) does not support MySQL (which in itself is riduculous), but here's my problem. I have a script I just downloaded that works perfectly on Linux/Apche/MySQL/PHP5, but when I run it on Windows 2000 with PHP 4.4 I get a page full of errors. Lets forget about the errors, does anyone have any idea how to get PHP5 and MySQL to work on Windows. I have already tried 100 different variations of things from information I found searching out this problem, but maybe someone has a new idea. If it were me I'd just run this site on Linux, but this is for a friend who wants to use IIS. If your curious the errors are below. Thanks B Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in G:\Websites\Webtest\caalogin\include\database.php on line 207 Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in G:\Websites\Webtest\caalogin\include\database.php on line 218 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at G:\Websites\Webtest\caalogin\include\database.php:207) in G:\Websites\Webtest\caalogin\include\session.php on line 46 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at G:\Websites\Webtest\caalogin\include\database.php:207) in G:\Websites\Webtest\caalogin\include\session.php on line 46 Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in G:\Websites\Webtest\caalogin\include\database.php on line 218 Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in G:\Websites\Webtest\caalogin\include\database.php on line 207 Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in G:\Websites\Webtest\caalogin\include\database.php on line 218 While it probably has nothing to do with your errors, mysql_numrows() is a deprecated alias to mysql_num_rows(), which should be used instead. As for your problem, have you checked the PHP docs on how to install MySQL support for PHP5 on Windows? http://www.php.net/manual/en/ref.mysql.php Regards, Adam Zey. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php