[PHP] mysq_connect - flags
Hi, Is there any body who have experience with the flags in mysql_connect() in php = 4.3 . Especially the MYSQL_CLIENT_COMPRESS flag. I dont know if it works or not. I cant make any difference. Should php must be compiled with a special flag to get work this? atur -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mysq_connect()
Cesar Rodriguez wrote: -snip-- The message I get is: Fatal error: Call to undefined function: mysql_pconnect() in var/www/html/lesson/firsta.php Seems that PHP4 does not find the MySQL library. I checked php.ini and httpd.conf files and everything is in its place apparently. I re-installed everything from scratch with no positive result. I would appreciate advice on this issue. I think the best way to prove whether you have mysql support or not would be to look at the output of phpinfo(). If this does not show mysql support then you will need to recompile php with it. Is this a standard RH 8.0 installation or have you modified it? HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mysq_connect()
Hi there, my name is Cesar Rodriguez and I am trying to upgrade from Caldera Linux Server 2.3 into RedHat Server 8.0. The problem I encounter is that after testing different scripts, php is working, except when I make an MySQL call like mysql_connect() or mysql_pconnect(). The call is as follows: $link = mysql_connect('localhost', 'user1', 'passwd') or exit(); mysql_select_db ('mydb') or exit (); $result = mysql_query ('SELECT COUNT(*) FROM clients') or exit (); if ($row = mysql_fetch_array ($result)) . etc .. The message I get is: Fatal error: Call to undefined function: mysql_pconnect() in var/www/html/lesson/firsta.php Seems that PHP4 does not find the MySQL library. I checked php.ini and httpd.conf files and everything is in its place apparently. I re-installed everything from scratch with no positive result. I would appreciate advice on this issue. Thanks Cesar Rodriguez -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mysq_connect()
is PHP configured with --with-mysql ? Hi there, my name is Cesar Rodriguez and I am trying to upgrade from Caldera Linux Server 2.3 into RedHat Server 8.0. The problem I encounter is that after testing different scripts, php is working, except when I make an MySQL call like mysql_connect() or mysql_pconnect(). The call is as follows: $link = mysql_connect('localhost', 'user1', 'passwd') or exit(); mysql_select_db ('mydb') or exit (); $result = mysql_query ('SELECT COUNT(*) FROM clients') or exit (); if ($row = mysql_fetch_array ($result)) . etc .. The message I get is: Fatal error: Call to undefined function: mysql_pconnect() in var/www/html/lesson/firsta.php Seems that PHP4 does not find the MySQL library. I checked php.ini and httpd.conf files and everything is in its place apparently. I re-installed everything from scratch with no positive result. I would appreciate advice on this issue. Thanks Cesar Rodriguez -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mysq_connect()
On Thu, 30 Jan 2003, Cesar Rodriguez wrote: Hi there, my name is Cesar Rodriguez and I am trying to upgrade from Caldera Linux Server 2.3 into RedHat Server 8.0. The problem I encounter is that after testing different scripts, php is working, except when I make an MySQL call like mysql_connect() or mysql_pconnect(). The call is as follows: $link = mysql_connect('localhost', 'user1', 'passwd') or exit(); mysql_select_db ('mydb') or exit (); $result = mysql_query ('SELECT COUNT(*) FROM clients') or exit (); if ($row = mysql_fetch_array ($result)) . etc .. The message I get is: Fatal error: Call to undefined function: mysql_pconnect() in var/www/html/lesson/firsta.php Seems that PHP4 does not find the MySQL library. I checked php.ini and httpd.conf files and everything is in its place apparently. I re-installed everything from scratch with no positive result. I would appreciate advice on this issue. Install the php-mysql rpm, restart apache, and they will now exist. (assuming you already installed the mysql rpm) In short, there are three rpms: php, mysql, and php-mysql. http://www.rpmfind.net/ Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php