Thursday, June 17, 2010

On your Mark...Get Set ...Ready..Go .. Your First PHP Program

Now its time to code and run your first PHP program. We have learned how to install XAMPP on your environment in the previous articles. Follow the steps given below to run your First PHP script. Before that make sure that the apache and mysql services are running by typing http://localhost/phpmyadmin (or) http://localhost/xampp. If its not working then start the Apache and MySql services using xampp-control.exe. After that Follow these steps.

1. Open the Notepad and type the Following Code
   
<?php echo "

Hi ! Welcome to the World Of PHP ! I am your first PHP Script ! Cheers !!!

";  
   ?> 

2. Save it as "welcome.php" and select the save as file type as "All Files". You have to save inside your htdocs folder of XAMPP since it is your root directory. 
  Eg : C:\xampp\htdocs\welcome.php         


3. Now open your web browser and type the URL http://localhost/welcome.php to watch how your First PHP script runs.

    Cheers ! Now I hope you feel that you're at the top of the world !!!


Enhanced by Zemanta

Tuesday, November 17, 2009

Installing xampp

Before we get into PHP, we have to install xampp. Xampp is a package which consists of Apache HTTP server / web server, mysql, php and perl. xampp is freely available http://www.apachefriends.org/en/xampp-windows.html. Download it and install. And then start the xampp control panel by running xampp-control.exe inside xampp folder (in case of windows) and start the apache, mysql, filezilla services. And now open your browser and type the url "http://localhost/xampp". If xampp home page is displayed then you have successfully installed and set up a xampp environment on your os to run php scripts.                                      

Thursday, July 16, 2009

PHP AN INTRO


As you are aware of it, php is a server side scripting language. It handles the web client(browser) requests and responds the client with the dynamic web content. Besides php there are many
other Server side scripting languages available. They are PERL, CGI, COLD FUSION,ASP, JSP,JAVA SERVLETS and most recent Ruby on rails framework. The list goes on. Then why and how php withstands in this highly competitive web development industry. Simply because of its simplicity and flexibility. Yes php is very easy to learn and code. Most of its syntaxes are borrowed from perl and C. Thats why its very robust and most people prefer it. And whats the orgin of php and who created it? Click here for the history of php