You are here: RE: [PHP] undefined mysql_connect() ??? « PHP « IT news, forums, messages
RE: [PHP] undefined mysql_connect() ???

Posted by "bruce" on 10/20/44 11:19

frank,

did you install php/mysql as an RPM or from source? what OS are you using?

if you did the RPM (assuming redhat linux), do a rpm -qa | grep 'php' (or
maybe just php without the '')

tell me/the list what it says..

-bruce


-----Original Message-----
From: Frank Whitsell [mailto:frank@sysappnet.com]
Sent: Tuesday, June 21, 2005 1:59 PM
To: bruce
Cc: php-general@lists.php.net
Subject: RE: [PHP] undefined mysql_connect() ???



Thanks for your reply, Bruce.
I hadn't thought of running it from the command-line as a test.

Here is the entire code and the result (which was the same):

Script started on Tue 21 Jun 2005 03:49:17 PM CDT

============ THE TEST CODE =========
[flw@linux4 tst]$ cat mysqltst.php
<?php
$dbh = mysql_connect("localhost");
print "dbh=$dbh\n";
exit;
?>

============ THE RESULT =========
[flw@linux4 tst]$ php mysqltst.php
PHP Fatal error: Call to undefined function: mysql_connect() in
/home/flw/php/tst/mysqltst.php on line 2
Content-type: text/html
X-Powered-By: PHP/4.3.9

[flw@linux4 tst]$ exit

Script done on Tue 21 Jun 2005 03:49:34 PM CDT

--frank--

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация