Author |
|
coldasice
Joined: 02 Jan 2007 Posts: 20
|
Posted: Tue 02 Jan '07 15:32 Post subject: Blank screen! php dont connect to mysql |
|
|
i dont know if the php dont connect to mysql..
but when i run index.php i get a totally blank screen.. wtF?
some one know? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 02 Jan '07 17:06 Post subject: |
|
|
What do you see if you view the sourcecode from the browser (right click into browser)? Do you see the php code? |
|
Back to top |
|
coldasice
Joined: 02 Jan 2007 Posts: 20
|
Posted: Tue 02 Jan '07 18:16 Post subject: |
|
|
James Blond wrote: | What do you see if you view the sourcecode from the browser (right click into browser)? Do you see the php code? |
blank as it can be.. =d
nothing there.. white as snow =D
any solutions? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 02 Jan '07 23:38 Post subject: |
|
|
Download the testscript and try
That script will show if mysql in correctly installed in php.
http://www.apachelounge.com/download/mysqlinfo.zip
But you also could enable debugging in your script
<?php
error_reporting(E_ALL);
?> |
|
Back to top |
|
Panda
Joined: 16 Dec 2006 Posts: 16
|
Posted: Wed 03 Jan '07 1:04 Post subject: |
|
|
You didn't have php-mysql support installed
Running apt-get install php5-mysql will make @mysql_connect work.
or make sure you load extension=php_mysql.dll in php.ini file |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 03 Jan '07 10:40 Post subject: |
|
|
You see!
find in php.ini
;extension=php_mysql.dll
and replace with
extension=php_mysql.dll |
|
Back to top |
|
coldasice
Joined: 02 Jan 2007 Posts: 20
|
Posted: Wed 03 Jan '07 17:16 Post subject: |
|
|
i have already done that.. =D
and mysql dont work.. already downloaded that test script =D
i even followed the tutorial =D
maby somthing else will work? |
|
Back to top |
|
coldasice
Joined: 02 Jan 2007 Posts: 20
|
Posted: Wed 03 Jan '07 23:47 Post subject: |
|
|
some one manage to figure somthig out?
www.apachelounge.com
php MySQL extension not loaded !!
Check in php.ini if extension=php_mysql.dll is enabled, and that the extension_dir = is pointing to your php/ext folder.
Copy libmySQL.dll from your Mysql/bin folder to c:/windows.
Configuration File (php.ini) Path F:\PHP\php.ini
extension_dir C:\php5 C:\php5
include_path .;C:\php5\pear .;C:\php5\pear
extension_dir = f:\php\ext
NEVER POST THE OUTPUT! we know standart values! |
|
Back to top |
|
coldasice
Joined: 02 Jan 2007 Posts: 20
|
Posted: Wed 03 Jan '07 23:54 Post subject: |
|
|
now mysql works.. i did some magic.. but its still blank in the index.php and other..
think evry thing work so please close.. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 04 Jan '07 10:27 Post subject: |
|
|
in httpd.conf you should set where your php.ini is!
e.g.
PHPIniDir "C:/server2/php" <== replace with your path
in php.ini enable
short_open_tag = On |
|
Back to top |
|