wordpress2
Wordpress
July 11, 2017

What is WordPress Child Theme?

A child theme is a theme that inherits the functionality and styling of another theme,…
Read More
Wordpress
April 8, 2016

Embed a site example

Embedding a site can be done with a code below "iframe" width="560" height="315" src="http://www.w3schools.com" frameborder="0"…
Read More

In wordpress, wp-config.php contains the major information which connects a site to database.

Generally it looks like,

define('DB_NAME', 'my-database');
define('DB_USER', 'my-username');
define('DB_PASSWORD', 'my-password');
define('DB_HOST', 'localhost');

Value of DB_HOST varies from hosting company to company – though it is “localhost” most of the time.

In rare case, DB_HOST is called by $_ENV{DATABASE_SERVER}, which looks like :
define('DB_HOST', $_ENV{DATABASE_SERVER});

This is also a trick to catch the name of Database Host automatically

To get the name of DB_HOST, simply create a .php file with any name and put the following value with php opening tag

echo $_ENV{DATABASE_SERVER};

Hope this helps!

By | Wordpress | No Comments
ThemeforestWordpress
March 21, 2016

How to download full theme package from Themeforest?

Sometime it confuses us how to download the full theme package from themeforest Follow the…
Read More
Wordpress
March 14, 2016

Increase WordPress Memory Limit, Max. Input Vars

Put the following code in any one of the following given files. WP-CONFIG VALUES define(…
Read More