Avatar of solution1368
solution1368 asked on

php code and database hosting on godaddy

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
PHPMySQL ServerJavaScript

Avatar of undefined
Last Comment
Ray Paseur

8/22/2022 - Mon
Jerry Miller

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';
ASKER CERTIFIED SOLUTION
Ray Paseur

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23