LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   MySQL and PHP 5 (https://www.linuxquestions.org/questions/linux-newbie-8/mysql-and-php-5-a-349646/)

yayalasee 08-03-2005 01:07 PM

MySQL and PHP 5
 
I installed Fedora Core 4 which comes with PHP (I also installed the MySQL package), but I don't know how to configure PHP 5 to include MySQL functions (they are clearly not enabled as I get function undefined error messages). The PHP manual doesn't really help me on this issue.

Nylex 08-03-2005 03:07 PM

If you make a page with

Code:

<?
phpinfo();
?>

, you should see a section with "Configure Command" in it (it's near the top). Look in the grey box, do you see '--with-mysql=/path/to/mysql'? If not, then I think you'll have to rebuild PHP to include support for MySQL (edit: unless you can find an RPM for PHP 5 that's built with it). Unfortunately it isn't enabled by default in PHP 5 (but I guess you've seen this already) :(. HTH.


All times are GMT -5. The time now is 03:52 AM.