You are Here:
FAQ
Scripting and Programming Languages
PHP
Article #1
What is PHP?PHP is a web scripting language used to create dynamic web pages and interactive features on websites. PHP scripts can be executable scripts or they can also be embedded in an HTML document enclosed within special PHP tags. This is often done to allow the author of the website to jump between HTML and PHP instead of having to rely on heavy amounts of code to output HTML. 1&1 has activated support for PHP for all Linux-based hosting packages, as well as, root and managed servers. If you have a Managed server or a Linux-based Hosting package, you can create .php files and save them to your web directory. The server will automatically parse them for you. You will not need to compile anything or install any extra tools. All files ending in .php3 are currently being handled by PHP4*. All files ending in .php4 and .php are handled by PHP4. All files ending in .php5 are handled by PHP 5. *Why was PHP 3 deactivated? A simple PHP Script looks like this:
<html>
<head>
<title>My First PHP Script</title>
</head>
<body>
<?php
echo "Hello World";
echo "Today is the".date("m/d/Y");
?>
</body>
</html>
Please Note: 1&1 Shared hosting and Managed server packages do not support SNMP or NNTP. Find out more... Which packages support PHP? What’s new in PHP 5? What should I consider if I want to use PHP 5? How to check PHP settings on the server How to access a MySQL database using PHP script Error 500 while executing PHP scripts 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. |
© 2008 1&1 Internet Inc - About 1&1 Internet