PHP Classes

config file missing

Recommend this page to a friend!

      Short Code CRUD  >  All threads  >  config file missing  >  (Un) Subscribe thread alerts  
Subject:config file missing
Summary:config file missing
Messages:3
Author:Sanjay Rathod
Date:2015-09-18 07:30:20
 

 


  1. config file missing   Reply   Report abuse  
Picture of Sanjay Rathod Sanjay Rathod - 2015-09-18 07:30:21
Hi there,
I can't test it beacuse as a primary look I found that config.php is missing on package. Can you please let me know what inside config.php.

Thanks in advance

Regards,
Sanjay

  2. Re: config file missing   Reply   Report abuse  
Picture of Bharat Parmar Bharat Parmar - 2015-09-18 07:42:47 - In reply to message 1 from Sanjay Rathod
I have added the config.php file for the same 2 hours ago but it is not approved yet. Once it will be approved by the Admin, you will found the config.php file.

This is the config.php file code :
<?php
@session_start();

//DATABASE DETAILS
//SET HOSTNAME
$hostname = "localhost";

//MYSQL USERNAME
$username ="root";

//MYSQL PASSWORD
$password="";

//MYSQL DATABASE NAME
$database="bharatcode";

//DATABASE CONNECTION

mysql_connect($hostname,$username,$password) or die(mysql_error());
mysql_select_db($database) or die(mysql_error());

unset($hostname);
unset($username);
unset($password);
unset($database);

//DATABASE CONNECTION CODE END


/*SET THE DEFAULT PAGE PER RECORD LIMIT*/
if(!isset($_SESSION['pagerecords_limit']))
{
$_SESSION['pagerecords_limit']=20;
}

// TABLE PREFIX
define("TABLE_PREFIX","bh_"); //DATABASE TABLE PREFIX IF YOU HAVE SET LIKE : bh_user_master. => "bh_" otherwise leave it blank.

/* php.ini DEFAULT SETTINGS OVER-RIDE*/
ini_set("error_reporting", "1");

?>

  3. Re: config file missing   Reply   Report abuse  
Picture of Bharat Parmar Bharat Parmar - 2015-09-18 07:49:10 - In reply to message 1 from Sanjay Rathod
I have also added the config.demo.php file you can rename the file with config.php and use it.

Thanks.

 
For more information send a message to info at phpclasses dot org.