You are Here: FAQ ->What Is...?->Article #7


What is PHP?


For Linux packages only!Linux Packages Only!
      This includes:
          arrow 1&1 Beginner (Linux)
          arrow 1&1 Home (Linux)
          arrow 1&1 Business (Linux)
          arrow 1&1 Developer (Linux)
          arrow 1&1 Dedicated Website Servers (formerly called managed servers)





PHP is a web scripting language used to create dynamic web pages and interactive features that greatly exceed the functionality of simple HTML files. 1&1 Linux WebHosting packages and 1&1 Website Dedicated Servers run PHP5 as default starting Q3 2010. Any files named with the extension .php will be parsed by the WebHosting server automatically when accessed via the browser. PHP pages can be created via a text editor such as WordPad, Notepad, vi, nano, etc. and must be named with the .php extension. Regular HTML tags are used to construct the page with PHP tags included wherever PHP code is needed.


Some benefits of PHP scripting:

arrow image Dynamic content creation/manipulation via use of included or custom functions
arrow image Generation and manipulation of GIF, JPG, and PNG files, including the use of TrueType fonts
arrow image Database functions for connecting MySQL databases
arrow image Expanded network functionality
arrow image Regular expressions
arrow image Compression (gzip)
arrow image Encryption (MD5, Base64), other encryption algorithms (e.g. AES) via mcrypt
arrow image XML/XSLT parsing
arrow image Expanded calendar functions

PHP manual
PHP functions reference

Please Note: 1&1 Shared hosting and Managed server packages do not support SNMP or NNTP.



A PHP "Hello World!" example


<html>
  <head>
    <title>The first PHP script</title>
  </head>
  <body>
  Here is some normal text that will <b>not</b> be parsed as PHP and will display as expected!<br/>
     <?php
       echo "Hello World!" ;
       echo " Today is " . date( "m/d/Y" );
     ?>
  </body>
</html>


OUTPUT

Here is some normal text that will not be parsed as PHP and will display as expected!
Hello World! Today is 06/27/2010   



Since PHP5 is the default version of PHP run on all Web Hosting contracts within 1&1 since Q3 2010, please also reference What's new in PHP5? for more information



Disclaimer: 1&1 provides the scripts and related information on this page as a courtesy, subject to 1&1's General Terms and Conditions of Service (the "GT&C"). As set forth in more detail in the GT&C, the scripts and information are provided "as-is", without any warranty, and 1&1 is not liable for any damages resulting from your use of the scripts or information.


Print Article
How useful was this article?
(From 5 = Very Useful to 1 = Not useful at all):
1 2 3 4 5