Php training in chandigarh - Cbitss Technologies

Page 1

PHP TRAINING IN CHANDIGARH


First PHP Program â—? Your first PHP program â—? Running a PHP program Your First PHP Program PHP is a very simple scripting language. If you have read C language then you can easily create web applications in PHP. So far, you have learned about PHP tags. Let's now try to make a simplest program in PHP and understand it.


However PHP can be embedded with HTML. But you can also create a program of only PHP. The following is a pure PHP program. https://www.youtube.com/watch?v=sHhtJtioyfc&feature=youtu.be The <? Php opening tag has been used first in the above program. As you know, the PHP code is always written between <? Php and?> Tags. Therefore it is necessary to define these tags before writing the main PHP code.


The echo function has been used 2 times after the PHP opening tag. This function is used in PHP to print values of string messages and variables. You can also define HTML tags in this function. As in the example given above, the tag tag is defined, which is used for the line break. This is a very simple example. This example prints Hello Reader and Welcome to Best Hindi Tutorials messages as an output.


Running a PHP Program You can not execute a PHP program like any HTML program. Because PHP is a server side scripting language, PHP is executed by the server. Before telling to execute the PHP program, assuming that you have installed XAMPP in your computer, and you have started the Apache server with the XAMPP control panel. XAMPP is a software package that provides services such as PHP interpreter, Apache server and MySQL to develop in PHP.


If you have not yet installed XAMPP, please install XAMPP after following the tutorial of PHP installation. Before running any PHP program, your XAMPP control panel should have this situation as follows. CBitss Provide Best PHP training in chandigarh . CBitss Is One Of The Best training institute in chandigarh . for More Information visit our website


XAMPP-Control-Panel PHP files execute by server, so all PHP files are stored on the server. XAMPP installs the local server in your computer so that your computer becomes the server. Because you are still learning to create web applications in PHP, you will work on the local server. Once you learn well, you can work on the live server too. Whether the local server is used or the live server concept is the same. You store your files in a directory of the server. Later when the web browser requests for that file then the server executes them and the result is displayed in the browser.


CBitss Technologies

SCO 23-24-25, Sector 34A Chandigarh, IN 160022

(+91) 9988741983 counselor.cbitss@gmail.com


THANK YOU


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.