LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   php connecting to mysql data base (https://www.linuxquestions.org/questions/red-hat-31/php-connecting-to-mysql-data-base-130315/)

phil81 12-31-2003 06:40 AM

php connecting to mysql data base
 
Hello

I have running

Apache/2.0.40 (Red Hat Linux)

PHP Version 4.2.2

phpmyadmin 2.5.4

php runs fine so does apache

I can set up my databases that run with phpnuke / coppermine + a bunch of other stuff.
using phpmyadmin or in a terminal..

again so far so good ..

NOW when I point my browser to /localhost/phpnuke/index.php or any one of the other data base sites
I just get a blank page ! no error message nothing .

I tried to provoke error messages by putting false information regarding users or pass word in the relevent config.php file But no error message .. still a blank page ..

The only way I can provoke error messages is by leaving data base type blank like this

$dbtype = "";

instead of

$dbtype = "MySQL";



So I gather that php cant connect to a MySQL data base on my computer ..
Is this correct and If so How can I remedy this ..

I looked in php.ini but could not fond any thing yet But still looking

I know its new years eve so you all have a good time tonight

Phil81


:study:

phil81 12-31-2003 06:44 AM

sorry the provoked error messages are


Warning: Failed opening 'language/lang-.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/nuke/mainfile.php on line 79

Warning: Failed opening 'themes//theme.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/nuke/header.php on line 31

Fatal error: Call to undefined function: themeheader() in /var/www/html/nuke/header.php on line 47

phil81 12-31-2003 07:56 AM

problem fixed
 
I just uncommented
extension=php_mysql.dll
in php.ini
all is running fine now

thanks:newbie:


All times are GMT -5. The time now is 04:18 AM.