By: Charles Mombo on Twitter @CharlesSMombo,
www.ChocolateCity.cc on Twitter @burnedbrass
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.
Like most Linux hosting, 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.
1. New object model and 2. XML and SOAP Web Services are two new components in PHP5.
The new object model in PHP 5 makes programming easier and more efficient. Methods can be restricted to specified user groups. Through exceptions, the handling of errors become simpler.
XML support in PHP 5 has been updated and improved. LibXML2 has been implemented as an XML-Parser. Now, in addition to SimpleXML, PHP 5 provides a faster and easier way to manipulate XML. The support of SOAP web services is a new addition to PHP 5. How to run PHP5 on 1and1.com in 1 easy step…
With 1&1 Linux hosting packages you have the choice between PHP 3, PHP 4 and PHP 5. To distinguish a script as PHP 5, simply name the script with the file
extension .php5.
Please note that in contrast to PHP 4, the default for the variable RegisterGlobals
is "off". By default Apache uses PHP 4 for .php extension. If you don't want to rename all your scripts to .php5 you can do the following:
Update your .htaccess file and add the following lines:
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
This will tell Apache to use PHP 5 instead of PHP 4 for the extension .php in the
directory the .htaccess is placed and all sub-directories under it.
If the above information was helpful, please comment or share the article.
Please follow and share ChocolateCity.cc on FACEBOOK and TWITTER.
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.












Thanks for the information.
I installed Buddypress on a working WordPress MU and got: Error 500 – Internal server error.
After several frustrating hours, a google keyword search brought up your site. After following your instruction, I was able to resolved my problem.
I’m willing to offer couple of $’s but I don’t see a PayPal donation button.
Thanks,
Dave