Basics about PHP
Posted By : Anchal Goel | 22-Dec-2014
Basics about PHP
- PHP is a server scripting language
- And a powerful tool for making dynamic and interactive web pages
- Widely used free, and efficient alternative to competitor's such as microsoft's ASP
For example,
Input
<!DOCTYPE html>
<html>
<body>
<?php
echo "My first PHP script !";
?>
</body>
</html>
Result
My first PHP script !
- PHP scripts are executed on the server
- Before you continue you should have basic understanding of
- HTML
- CSS
- Javascript
- PHP is an acronym for "PHP : Hpertext Preprocessor"
- Widely used, open source scripting language
- Powerful enough to be at cost of biggest blogging system on web ( Word Press ) !
- Deep easy enough to beginner's first server side language
PHP file
- Can contain text, HTML, CSS, Java script and PHP code
- Code are executed on server, and result is returned to browser as plain HTML
- Files have extension ".php"
PHP can do
- Generate dynamic page content
- Create, open, read, write, delete, and close files on server
- Collect from data
- Can send and recieve cookies
- Can used to control user access
- Can encrypt data
Why PHP
- Runs on various platforms ( windows, linux, unix, Mac OS X etc )
- Compatible with almost all servers used today ( Apache, IIS, etc )
- Supports a wide range of data
- Easy to learn and runs efficiently on server side
THANKS
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Anchal Goel
Anchal is a bright QA engineer and when she is not finding bugs in applications , she spends her time listening to music, dancing, travelling and cheering people around her.