Skip to main content

Beginning with PHP development with your first php code.

PHP is a server scripting language that is mainly suitable for web page or web application development. PHP pages can also have HTML, CSS and Javascript  in it. By default PHP can be write in a file with .php extension like 'filename.php'.

System Requirements  for PHP Development:

(On Window OS)

The all in one solution for PHP development on window machine are : WAMP and XAMPP server stack that have web server (Apache) , PHP and database server (Mysql) in it.

You can download WAMP server from here or the XAMPP server from here.

One of the best thing with these server is that they are open source and free to use.

Tools you can use:

Notepad++ : This is a text editor that can be used to write your PHP code.

Download the Notepad++ from here.


Step to write you first PHP code:
  • Install the WAMP/XAMPP server.
  • Create a new file in Notepad++ (Or any text editor you have)
  • Write the below code in the file.
Code of index.php file
  • Save the file as "index.php" in the C:\wamp\www\ folder in WAMP server or C:\xampp\htdocs\ folder in XAMPP server. 
  • Go to web browser like Mozilla or Internet Explorer.
  • Write http://localhost/index.php in the address bar.
That done  you will see the following output.
Output of index.php file

Enjoy your first php code. Happy coding :)

Comments

Popular posts from this blog

The Great Architectures of Bijawar, Chhatarpur, M.P.

Bijawar, Temple Janki Niwash Bijawar, Temple Janki Niwash   Maharaja Palace of Bijawar - A very royal palace of the Great Maharaja Ji of Bijawar. The palace has a great eye caching architecture. It stands tall with its mirror image on a big Talab in front of it. The palace is become very old and loosing its age at a rapid pace. Unfortunately its to late to restore the Bijawar palace infrastructure but one should create Bijawar palace replica or model to preserve its beauty and architecture. This photo of the palace is the first photo taken and publish on the web. That time there was no good cameras available but as said Old is Gold.

Get Google Calender's Event Notifications Or Reminder Notifications On Windows

Hi Friends, I was struggling for some days to get better notifications for google calender's events or reminders that I have set for myself but I was able to only get the browser notifications that was not quite working for me. I am not satisfied the way those browser notifications work for any calendar event or alert. The cons of browser notifications are: 1. They can't be snooze 2. They didn't sustain for long time, they just appears for 1 or 2 min maximum. 3. They are not very attractive. They can be missed easily. For these reasons the browser notifications are not a good solutions for Calendar notifications. So I searched on internet for any solutions that can provide me to get better notification for my google calendar events. By change today I get a window update today and I come to know about the Mail  app on  Window 10. This simple mail client app asked me to set up account with Google account and then it synced all my mails and calendars from my google a...

Scanning QR code without installing App on Android Mobiles

     Hello friends, QR code is a machine readable bar code that contains information about the items like mobile number, web page URL, Wi Fi settings, mobile app installation URL etc. We see QR code have a lot of times every day on many places. QC code save out time and efforts to manually type such information in our devices.      The problem is that  not all devices have built in camera support to scan the QR code so we need to install new application from play store to be able to read the QR code but I figure out a very nice way to scan a QR code without any additional support.      An android deice have google search app installed by default and google photo search comes with the QR code reading capability by default and its going to be very handy to use this feature as the google search provides a search widget at Home screen of the android mobile or tablet. How to scan QR code with google photo search: 1. Open your mobile and searc...