php code and database hosting on godaddy

solution1368
solution1368 used Ask the Experts™
on
I have the following codes, and I try to find out the userID/password for the database that hosting on GoDaddy.com (See attached). Can you tell me where I should get those information? I am not a programmer in php.
Thanks,

<?php
class JConfig {
	var $offline = '0';
	var $editor = 'tinymce';
	var $list_limit = '20';
	var $helpurl = 'http://help.joomla.org';
	var $debug = '0';
	var $debug_lang = '0';
	var $sef = '0';
	var $sef_rewrite = '0';
	var $sef_suffix = '0';
	var $feed_limit = '10';
	var $feed_email = 'author';
	var $secret = '4s6BvlGBT74UcTxG';
	var $gzip = '0';
	var $error_reporting = '-1';
	var $xmlrpc_server = '0';
	var $log_path = '\\logs';
	var $tmp_path = '\\tmp';
	var $live_site = '';
	var $force_ssl = '0';
	var $offset = '-8';
	var $caching = '0';
	var $cachetime = '15';
	var $cache_handler = 'file';
	var $memcache_settings = array();
	var $ftp_enable = '0';
	var $ftp_host = '127.0.0.1';
	var $ftp_port = '21';
	var $ftp_user = '';
	var $ftp_pass = '';
	var $ftp_root = '';
	var $dbtype = 'mysql';
	var $host = ‘xxx.db.8507580.hostedresource.com';
	var $user = 'john';
	var $db = 'dbname';
	var $dbprefix = 'jos_';
	var $mailer = 'smtp';
	var $mailfrom = 'info@xxx.com';
	var $fromname = xxx';
	var $sendmail = '/usr/sbin/sendmail';
	var $smtpauth = '1';
	var $smtpsecure = 'none';
	var $smtpport = '80';
	var $smtpuser = ‘support@xxx.com’;
	var $smtppass = 'xxxxx';
	var $smtphost = 'smtpout.secureserver.net';
	var $MetaAuthor = '1';
	var $MetaTitle = '1';
	var $lifetime = '15';
	var $session_handler = 'database';
	var $password = 'p@ssword';
	var $sitename = ‘site name';
	var $MetaDesc = '';
	var $MetaKeys = '';
	var $offline_message = 'This site is down for maintenance. Please check back again soon.';
}
?>

Open in new window

database.png
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hopefully you blocked out the actual values before posting, if not you should edit them if you can or contact a moderator if you can't. It is never save to post full config files on the internet, someone will hack you at some point.

These should be the values that you are looking for:

var $password = 'p@ssword';
var $user = 'john';
var $db = 'dbname';
Most Valuable Expert 2011
Top Expert 2016
Commented:
You might want to consider hiring a Joomla developer to help you with this.  Any time you're looking at a lot of code that you don't understand you face one of two choices: (1) Hire a professional developer who already understands or (2) Learn everything the professional developer knows so you can do it yourself.  I'll bet you can guess which path gets you good results quickly!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial