On Wed, Jul 21, 2004 at 02:53:55PM -0400, Robert Munn wrote:
> I recently upgraded apache2 and mod_php4 using portupgrade.  Now all my scripts that
> reference mysql fail with the error message:
> PHP Fatal error:  Call to undefined function:  mysql_connect() in 
> /usr/users/munn/public_html/Testing/MySQL.php

>From /usr/ports/UPDATING:
  AFFECTS: users of PHP
  The old lang/php4 and lang/php5 ports have been splitted into 'base' PHP,
  PEAR, and shared extensions to allow more flexibility and add new features.
  Upgrading your current PHP installation will result in a 'base' PHP
  installation (no PEAR and no extensions).
  PEAR can be found in the new devel/php4-pear and devel/php5-pear ports, while
  the set of PHP extensions to install can be choosen via the meta-ports
  lang/php4-extensions and lang/php5-extensions, or installing singular
  extensions individually.

You need to install /usr/ports/databases/php4-mysql, and you'll probably need
to change your extension_dir in your php.ini to point to
/usr/local/lib/php/20020429 (or whichever dir you have in there).  

[EMAIL PROTECTED] mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to