Re: Error connecting to MySQL with PHP4

From: Date: Sun, 05 Aug 2001 00:54:43 +0000
Subject: Re: Error connecting to MySQL with PHP4
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-3839@lists.php.net to get a copy of this message
> However, when I try to run the following simple script to connect to > MySQL on localhost, I get the baffling error: 'undefined function'. I > thought that MySQL connections were standard baked in PHP4. Unless specifically compiled to not have MySQL support, it is standard. Check phpinfo() and see if the configure line has --without-mysql in it. It probably does. You have 2 options, recompile PHP (no need to recompile Apache since PHP is a DSO (dynamic shared object) loaded into Apache when it starts). Or second, build just the MySQL extension using: --with-mysql=shared and load that into your PHP script at startup by doing dl('mysql.so'); in your script or add extension=mysql.so to your php.ini file. -Rasmus

« previous php.install (#3839) next »