Welcome to PHP programming,
Before starting our first PHP program, please keep the following points in your mind.
1) PHP is a server-side scripting language, scripts in a PHP file are executed on the server.
2) We can configure a local server in our local system using any third party toolkiits like xampp.
3) After installing xampp, the folder xampp\htdocs acts as a server.
4) We can use the url http://localhost/ to point our local server.
STEPS TO RUN OUR FIRST PHP PROGRAM
1) Start the web server using the xampp control panel and chose apache to start.
2) A PHP file normally contains HTML tags and PHP scripting code.
3) A PHP scripting block can be placed anywhere in the document.
4) There are two basic statements to output text with PHP: echo and print
Each code line in PHP must end with a semicolon.
Let us write a simple PHP program that sends the text "Welcome to PHP program" to the browser using echo statement.
5) Save it in our server i.e. , xampp\htdocs folder.
6) Run the code in browser using the url http://localhost/firstphpprogram.php
7) Similarly the print statement is also used
This is how the PHP program is executed.
8) The PHP script can also include comments in it.
We use // to make a single-line comment and /* and */ to make a large comment block in PHP.
Thank You.....
Krithika , Freelance developer
For PHP Project source code kindly refer www.studentprojects.live
Do you have Any queries? Contact us in Whatsapp :- +91-9972853368
#studentprojects #phpcode
Auf dieser Seite können Sie das Online-Video My First Program in PHP mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Student Projects Live 16 Februar 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 120 Mal angesehen und es wurde von 0 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!