First Create a Folder in your according sever. in the event that you use xampp, at that point go to C:/xampp/htdocs/or on the off chance that you use wamp, at that point go to C:/wamp/www . on the off chance that you use web facilitating server as Cpanel, GoDaddy, big rock, etc, at that point your main directory or folder is public_html or www or htdocs or your domain directory . After that then create a folder and name it as per your need. I name it to ‘site’ . in folder create or save a PHP file and name it to ‘config.php’, ‘db.php’, ‘connect.php’, ‘database.php’ according to you need. I name it to index.php.Write the following code in your PHP file.