I am setting up Php 5 on my notebook (use 4.3 for my development) and I apparently have not set something correctly. With my test and other code, the mysql_pconnect() is not recognized.

Suggestions welcomed....

<?php
include "pv.inc.php";
if (mysql_pconnect($gvars[host], $gvars[user], $gvars[password]))
echo "Connected<br />";
else echo "Cannot connect";
?>

Fatal error: Call to undefined function mysql_pconnect() in C:\Apache\htdocs\pvrc\php\testmysql.php on line 3

    Sounds like you have not installed/enabled the MySQL extension. Check the "sticky" posts in the "Database" and "Install" forums here for info/FAQs on the installation.

      Could well be since I have installed on a Vista notebook (certainly not my choice) and used the Installer that did not give any choices other than the version of Apache.

      Thanks....

        I've had good results on Vista with the WampServer installer, should you choose to go that route. Its user interface makes it very easy to enable/disable various extensions, too.

          MySQL has not been bundled with PHP nor enabled by default since PHP 5.0.

            Write a Reply...