My First Program in PHP

Publicado em: 16 Fevereiro 2017
no 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


Nesta página do site você pode assistir ao vídeo on-line My First Program in PHP duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Student Projects Live 16 Fevereiro 2017, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 120 vezes e gostou 0 espectadores. Boa visualização!