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
Avatar of Jerry Miller
Jerry Miller
Flag of United States of America image

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
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
JavaScript
JavaScript

JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.

127K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo