Error in Config File

I am a Learner in PHP, i downloaded a config file from online and when i try to use it in my local host, it don’t shows updates which done in Index.php.
Can any one help in this ?
<?php
date_default_timezone_set(‘Asia/Calcutta’);

// Site Name & Title VISNI SERVICES
define(‘SITE_NAME’,‘VISNI SERVICES’);
define(‘SITE_TITLE’,‘VISNI SERVICES’);
// Site Path …
define(‘SITE_PATH’,$_SERVER[‘DOCUMENT_ROOT’].’/visni’);
define(‘ADMIN_PATH’,SITE_PATH.’/admin’);
define(‘CSS_PATH’,SITE_PATH.’/css’);
define(‘PHP_PATH’,SITE_PATH.’/php’);
define(‘JS_PATH’,SITE_PATH.’/js’);
define(‘IMAGES_PATH’,SITE_PATH.’/images’);
define(‘INC_PATH’,SITE_PATH.’/inc’);
define(‘LIB_PATH’,SITE_PATH.’/lib’);

// Site URL’s …
define(‘SITE_URL’,‘http://visni.org’);
define(‘ADMIN_URL’,SITE_URL.’/admin’);
define(‘CSS_URL’,SITE_URL.’/css’);
define(‘FONT_URL’,SITE_URL.’/fonts’);
define(‘PHP_URL’,SITE_URL.’/php’);
define(‘JS_URL’,SITE_URL.’/js’);
define(‘IMAGES_URL’,SITE_URL.’/images’);
define(‘INC_URL’,SITE_URL.’/inc’);
define(‘LIB_URL’,SITE_URL.’/lib’);
//echo JS_URL;

// Database Connections Do not Modify Below…
define(‘DB_HOST’,‘localhost’);
define(‘DB_USER’,‘root’);
define(‘DB_PWD’,’’);
define(‘DB_NAME’,’’);
define(‘DB_TYPE’,’’);
?>

Welcome to the site !

You only have a config file that defines values to use inside other routines. For example, you have set the SITE_TITLE to a value of VISNI SERVICES. Then, in your various pages, you would use this for displayes. Such as in a header like; <?PHP echo SITE_NAME; ?> Or you can use them in loading files such as images, fonts, css or other items you might have. Another example you set the CSS_URL to a sub-folder named /css from the main SITE_PATH. When you want to load a css file, you would need to store the css file into that sub-folder. Then, include it from there as needed.

Hope that helps explain what you downloaded and set up. Good luck…

When i execute, the above paths are not activating and web site paths are activating

They are NOT variables, they are DEFINE’s. What this means is that they do NOTHING. They just make it easier to remember the URL’s. DEFINE’s are not commands. They just attach another name for an address. I think you do not understand what this is used for.

Sponsor our Newsletter | Privacy Policy | Terms of Service