How to start work in php?

This post is specially for website designers. who want to move or upgrade yourself as designer to developer.

Website designer will be a good website  developer because best design + development = Best Project.

Designer not need to go to some specific php classes for learning but hi can start when hi making static website. hi just need to know some special tag of php. Most of the html tags are using for website designing. As i think if you have a good practices of html tages and designing you just need to put the php tag as- “<?php ?>” ,”echo”,”include/required”,some sql query who you can find via

Some important terms to start the work in PHP

1- Install the XAMPP / WAMP

2- Start Apache and mysql server and upload your files in c//xampp/httdocs/yourfoldername and then  open browser with http://localhost/yourfoldername

3- Make header.php and footer.php files and copy your (common code whose show in all pages) html design header code in  header.php and and footer code  in footer.php. remember menu part must be a attached files.

4- Use <?php include(‘header.php’); ?> for attaching the header footer files.

5- Make different pages and save with .php extension, remember dont forget to write include code for attaching header.php and footer.php.

6- Make your all linking with php pages.

Your static but php site is ready. here your two page are extra header.php/footer.php but this willl helpfull to update or edit menu , attaching extra files, etc.

After completing two or three static php websites you can open http://localhost/phpmyadmin. here you can create database and make sql tables.

Set your database connectivity code

$mysql_hostname = “localhost”;
$mysql_user = “root”;
$mysql_password = “”;
$mysql_database = “databasename”;
$bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) or die(“Opps some thing went wrong”);
mysql_select_db($mysql_database, $bd) or die(“wrong”);

After successfully database connectivity you have to make registe rpage/login page or watever you want to make.

One most important thing designer need to move as a CMS developer(WordPress/Joomla,Oscommerce, etc) where designer can integrate design and make some miner code for customization.


Leave a Reply

Your email address will not be published.