Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

php server script help

need help in using phpmyadmn



2:53 am on Mar 13, 2005 (gmt 0)

10+ Year Member

am new in using php..give the basic instruction..am trying to make a login page and to connect to my database...it always failsI tried to open the index.php of phpmyadmn in my browser and it showed this what i must do
urldecode the db name if (isset($lightm_db)) { $db = urldecode($lightm_db); unset($lightm_db); } $url_query = 'lang=' . $lang . '&server=' . $server . (empty($db)? '' : '&db=' . urlencode($db));?>


3:07 am on Mar 13, 2005 (gmt 0)

10+ Year Member

Make sure PHP is compiled with, or your module is configured for, support for the type of database you are using. For example, if you were using MySQL database you would need to compile PHP with the --with-mysql option, or download a modphp4 (assuming Apache) that supports MySQL.

I have also had problems on occasion when I download security or bugfixes for the database and the process stops the service and does not restart it. Then I will get a message somewhere along the line of "MySQL is not running".


3:19 am on Mar 13, 2005 (gmt 0)

10+ Year Member

yhanks i like to know ...from where i must use..my sql option


10:20 pm on Mar 14, 2005 (gmt 0)

10+ Year Member

If you are asking me for help to compile PHP, I don't know much about your environment, so this may not be accurate. You would need access to the server for this. If your service is hosted your ISP will have to do this.

Go to www.php.net and download the latest version - 4.3.10. Untar it so you get the source directory.

go into that directory - I would read the INSTALL file before proceeding, but here is the gist of it:

./configure --with-apxs --with-mysql --with-xml

then, when that is done if it is a success, do:


followed by:

make install

That will build PHP (assuming for Apache, with MySQL and XML - if you want other stuff you need to read the docs) and install it in all the right places.

Then you need to shutdown and restart Apache (service httpd restart) and you should be good to go.

If you're not comfortable doing this, don't. You could make things worse.

Hope this helps.


Featured Threads

Hot Threads This Week

Hot Threads This Month