Quote:
|
Originally Posted by edwurster
I'm game. Since you've done this, what do I enter for the variables?
$dData['hostname'] = "hostname";
$dData['username'] = "username";
$dData['password'] = "password";
$dData['database'] = "database";
$dData['tablename'] = "orcasearch";
$dData['adminName'] = "admin";
$dData['adminPass'] = "password";
I can guess that the last two are my choices.
|
$dData['hostname'] = "localhost";
$dData['username'] = "username_search";
$dData['password'] = "anypassword";
$dData['database'] = "username_search";
$dData['tablename'] = "orcasearch";
$dData['adminName'] = "admin";
$dData['adminPass'] = "password";
The username_search assumes you create a database in CPanel called search, CPanel will create the database and prepend the domain's main username then an underscore, you don't do that, cpanel will do it. It is the same with the database user you create in CPanel but when creating the user use the same password that you put into $dData['password']. Then when you create those two things, you go back to the same screen you created them in and give the user full access to the database by choosing "all"
So to recap the Canel end of it, you log into CPanel and go to the MySQL section (not phpmyadmin)and do three things.
1. Create database - search
2. Create user - search
3. Give the user full access to the database
You can use whatever word you want, "search" is just an example. And don't use a password in $dData['password'] that you use on anything else, because it is sitting there in plain text in the config file. Any string of alpha numeric characters will do, you will never need to use it or remember it once the script is set up. You will need to remeber $dData['adminPass'] = "password"; though.
The tablename can probably be anything but since the developer calls it orcasearch I'd leave it at that. admin and password will be what you use to log into the backend of the script and initiate the spidering.