My First Program in PHP

Publicado el: 16 febrero 2017
en el canal de: Student Projects Live
120
0

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


En esta página del sitio puede ver el video en línea My First Program in PHP de Duración hora minuto segunda en buena calidad , que subió el usuario Student Projects Live 16 febrero 2017, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 120 veces y le gustó 0 a los espectadores. Disfruta viendo!