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
In questa pagina del sito puoi guardare il video online My First Program in PHP della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Student Projects Live 16 febbraio 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 120 volte e gli è piaciuto 0 spettatori. Buona visione!