hi! im a newbie in setting up php 5, apache and mysql. please bear with me, please...need a help.
Im using php 5.2.17, apache 2.2 and mysql 5.1.42. I
my php codes are working in loading some pages, but when I tried connecting to MySQL, i got the same error. "Fatal error: Call to undefined function mysql_connect()"
when i run test.php which has "<?php
phpinfo();
?> "
i have
C:\php\php.ini for the Loaded Configuration File
my php.ini is configured with:
extension_dir = "C:\php\ext"
extension=php_pdo.dll
extension=php_pdo_mysql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
my libmysql.dll is in c:\php
my httpd.conf has
LoadModule php5_module "C:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"
I run the code:
<?php // extensions_list.php
$list = get_loaded_extensions();
$list2 = array_map('strtolower',$list);
sort($list2);
echo '<pre>'.print_r($list2,true).'</pre>';
?>
and it doesnt show the mysql.
any help would be highly appreciated.