PHP.docx - PHP is a server scripting language, and a...

This preview shows page 1 - 3 out of 147 pages.

The preview shows page 1 - 3 out of 147 pages.
PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages.PHP is a widely-used, free, and efficient alternative to competitors such as Microsoft's ASP.PHP 7 is the latest stable release.<!DOCTYPEhtml><html><body><?phpecho"My first PHP script!";?></body></html>O/P:My first PHP script!PHP IntroductionPHP code is executed on the server.Before you continue you should have a basic understanding of the following:HTMLCSSJavaScriptWhat is PHP?
What is a PHP File?
What Can PHP Do?
1
PHP can encrypt dataWith PHP you are not limited to output HTML. You can output images, PDF files, and even Flashmovies. You can also output any text, such as XHTML and XML.Why PHP?PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)PHP is compatible with almost all servers used today (Apache, IIS, etc.)PHP supports a wide range of databasesPHP is free. Download it from the official PHP resource:PHP is easy to learn and runs efficiently on the server sideWhat's new in PHP 7PHP 7 is much faster than the previous popular stable release (PHP 5.6)PHP 7 has improved Error HandlingPHP 7 supports stricter Type Declarations for function argumentsPHP 7 supports new operators (like the spaceship operator: <=> )PHP InstallationWhat Do I Need?To start using PHP, you can:Find a web host with PHP and MySQL supportInstall a web server on your own PC, and then install PHP and MySQLUse a Web Host With PHP SupportIf your server has activated support for PHP you do not need to do anything.Just create some.phpfiles, place them in your web directory, and the server will automaticallyparse them for you.You do not need to compile anything or install any extra tools.Because PHP is free, most web hosts offer PHP support.PHP SyntaxA PHP script is executed on the server, and the plain HTML result is sent back to the browser.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 147 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Winter
Professor
N/A
Tags
Volvo

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture