Showing posts with label php introduction. Show all posts
Showing posts with label php introduction. Show all posts

Saturday, March 2, 2024

PHP introduction

 What is the PHP

PHP introduction




  ஃ  It was originally created by Danish-Canadian programmer Rasmus Lerdorf in 1993 and             released in 1995.

1]  PHP stands for Hypertext Preprocessor.

2] It is a widely-used open-source server-side scripting language.

3] primarily designed for web development and can be embedded into HTML.

4] PHP scripts are executed on the server, generating dynamic web page content.

5] PHP code can perform tasks such as collecting form data, interacting with databases,

managing sessions, and creating cookies.

6] It is commonly used alongside MySQL or other database management systems to
create dynamic websites and web applications.

8] php is powerful and flexible language supported by a large community of developers worldwide.

Why php use

1] platform independent

2] open source

3] runs multiple operating system

e.g :- window, linux, kill , dos

4] Free to download and edit.

What can php do ?

1] php can generate dynamic page content.

2] php can create open ,read ,write, delete, and close files on server.

3] collect form data.

4] send data receive cookies.

5] add delete , modify, your database.

6] control user access.

7] php can encrypt data

How to run PHP file


ஃ writing the php code Visual Studdio code, notepad, Eclipse etc..

1] first xampp server download.

2] than select the xampp folder click on htdocs file.

3] htdocs folder click than create your program folder.

ஃ you prrogram save

4] php program must save .php extension.

5] run to the php program xampp control panel click


XAMPP Control Panel


downloads XAMPP SERVER VISIT LINK

https://www.apachefriends.org/

ஃ Than click Apache Module click start button

ஃ Than click on Admin Button.

5] select folder of you project name.

6] Than select the you program name.

7] Program execute the XAMPP Server.

8] Run to the any browser.(show to the output).

Note :- php file is placed inside the htdocs folder. you want to run. open any web

browser and enter "localhost/demo.php" and press enter. than program is run

Php Syntax :-


<? php
.......
....
...

?>

PHP Program :-


<?php
echo " hi";
?>
<?+php
echo "<marquee>learn php language </marquee>" ;
?>

php Output:-

php basic  program/output


READ MORE