Current location: Hot Scripts Forums » Programming Languages » PHP » Help with config.php


Help with config.php

Reply
  #1 (permalink)  
Old 11-16-04, 03:03 AM
xandri xandri is offline
New Member
 
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Help with config.php

hi all, I'm a little new at this scripting game.
I'm trying to install a script, but first I have to edit the config.php file.
Now I know what most of it means, but I'm stuck on the term "localhost".
Is that my URL?, my hosts url?, or the /file as in http://dhhfhfs.com/file

Feel free to call me a moron, I'm sure I deserve it lol. But please help!!
Reply With Quote
  #2 (permalink)  
Old 11-16-04, 05:45 AM
prohibited prohibited is offline
Newbie Coder
 
Join Date: Nov 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
It wants you to enter your SQL host.
the default is "localhost" but if its does not work check on your
host's website documention. (faq answer this qustion alot)
Reply With Quote
  #3 (permalink)  
Old 11-16-04, 09:56 AM
phprogramming phprogramming is offline
Wannabe Coder
 
Join Date: Nov 2004
Posts: 214
Thanks: 0
Thanked 0 Times in 0 Posts
this is the default connection thing, if you were to post your config.php it would be easier to give you the answer:
PHP Code:

<?php


$dbc
=mysql_connect(localhost,root,password);
mysql_select_db(database);

?>
localhost is your mysql host, ask your web host for that, root is the username, password is password, and the database is the database that you will be working with
__________________
Source Code Talk - Programming Discussion, Tutorials, and More!
Reply With Quote
  #4 (permalink)  
Old 11-16-04, 12:19 PM
prohibited prohibited is offline
Newbie Coder
 
Join Date: Nov 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
If his config.php is like 89% of all other config files it would look like ..

PHP Code:

<?

   $user 
"your user name";
   
$pass "your password";
   
$host "localhost";
But I don't think it matters what his config file looks
like he just did not not what Localhost was by the
sounds of it.

alls what he has to do is find out the sql host and change the above to
PHP Code:



<?
   $user 
"your user name";
   
$pass "your password";
   
$host "your MySQL host";
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 05:13 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.