PHP tutorial-First Program with PHP

PHP tutorial-First Program with PHP

First Program with PHP

To create your first program with PHP, now open a simple text editor like Notepad or other editor such as Dreamweaver, SharePoint Designer, or Visual Studio and type the following code:

<head><title> First PHP Program</title></head>
   echo "This is my first program with php."; //php code

Then save this file with extension .php (e.g. myfirstphp.php) in the root directory of your WampServer (C:/wamp/www) or appServ server (C:/AppServ/www). After that you will open your browser and type: http://localhost/myfirstphp.php


This website intents to provide free and high quality tutorials, examples, exercises and solutions, questions and answers of programming and scripting languages:
C, C++, C#, Java, VB.NET, Python, VBA,PHP & Mysql, SQL, JSP, ASP.NET,HTML, CSS, JQuery, JavaScript and other applications such as MS Excel, MS Access, and MS Word. However, we don't guarantee all things of the web are accurate. If you find any error, please report it then we will take actions to correct it as soon as possible.