logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Blank screen! php dont connect to mysql
Author
coldasice



Joined: 02 Jan 2007
Posts: 20

PostPosted: Tue 02 Jan '07 15:32    Post subject: Blank screen! php dont connect to mysql Reply with quote

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

PostPosted: Tue 02 Jan '07 17:06    Post subject: Reply with quote

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

PostPosted: Tue 02 Jan '07 18:16    Post subject: Reply with quote

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

PostPosted: Tue 02 Jan '07 23:38    Post subject: Reply with quote

Download the testscript and try Wink

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

PostPosted: Wed 03 Jan '07 1:04    Post subject: Reply with quote

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

PostPosted: Wed 03 Jan '07 10:40    Post subject: Reply with quote

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

PostPosted: Wed 03 Jan '07 17:16    Post subject: Reply with quote

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

PostPosted: Wed 03 Jan '07 23:47    Post subject: Reply with quote

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

PostPosted: Wed 03 Jan '07 23:54    Post subject: Reply with quote

now mysql works.. Wink i did some magic.. but its still blank in the index.php and other.. Wink

think evry thing work so please close..
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 04 Jan '07 10:27    Post subject: Reply with quote

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


Reply to topic   Topic: Blank screen! php dont connect to mysql View previous topic :: View next topic
Post new topic   Forum Index -> Other Software