






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
php - php - php - php
Typology: Thesis
1 / 12
This page cannot be seen from the preview
Don't miss anything!
PHP - Is a powerful Server-side scripting language for creating dynamic and interactive website. ( Scripts: are list of PHP commands which are executed on the server).
PHP is perfectly suited for web Development and can be embedded directly into the HTML Code (HTML is used mainly for formatting text)
PHP is often used together with Apache (web server) on various operating systems. It also supports other web servers like ISAPI, ISS and ASP
PHP files may contain text, HTML tags and Scripts. Scripts in a PHP file are executed on the server.
PHP supports many database e.g. MySQL, Informix, Oracle, Sybase etc. PHP is an Open Source Software (OSS)- OSS is a computer software whose sources code is available under a license (or arrangement such as public domain )that permit users to change and improve the software and to re-distribute in a modified or un modified form.
PHP- Is a free to download and use. PHP files are returned to the browser as plain HTML PHP files have a file extension of “.php” “.php3 “or “.phtml” PHP runs on different platforms (Windows, Linux, UNIX,)
Writing PHP You don’t need any special software, except text editor (like Notepad in Windows)
A PHP file normally contains HTML tags just like an HTML file and some PHP scripting code.
An example of a simple PHP script which sends the text “Hello World” to the browser
Each code line in PHP must end with a semicolon .The semicolon is a separator and is used to distinguish one set of instruction from another.
above we have used the echo statement to output the text “Hello World”
To execute your code using any browser, just type http://localhost/ folder/ filename.php.
Comments in PHP
block.
Variables are used for storing values, such as numbers, strings or function results, so that they can be used many times in a script.
arrays.
Below, the PHP Scripts assigns the String “Hello World to a variable called $ txt: