homepage Welcome to WebmasterWorld Guest from 23.23.8.131
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
php server script help
need help in using phpmyadmn
devan

5+ Year Member



 
Msg#: 7332 posted 2:53 am on Mar 13, 2005 (gmt 0)

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));?>

 

donb01

10+ Year Member



 
Msg#: 7332 posted 3:07 am on Mar 13, 2005 (gmt 0)

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".

devan

5+ Year Member



 
Msg#: 7332 posted 3:19 am on Mar 13, 2005 (gmt 0)

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

donb01

10+ Year Member



 
Msg#: 7332 posted 10:20 pm on Mar 14, 2005 (gmt 0)

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:

make

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved