Home >> Support >> FAQs >> PHP

PHP

What is PHP?
Which PHP version do you have?
Is there any PHP Manual?
Do you support php-nuke?
Can I have my .html files parsed as PHP?
My PHP files generate a "500 server error" message.
Do you have ImageMagick, NetPBM or GD libraries on the server?
How can I change the php.ini settings for my account?
How do I set register_globals to Off for my account?

 

 

[Back to FAQ Topics Index]

 

 

 


What is PHP?

PHP is a server-side HTML embedded scripting language that was developed in C and is designed especially for working with relational database systems.

 

[PHP Topic Index] - [Back to FAQ Topics Index]

 

 

 


Which PHP version do you have?

Currently both PHP4 and PHP5 are available on all of our hosting servers.

You can check the current PHP versions on the server at your online Control Panel -> System Info section.

The default PHP interpreter is PHP 5. If you prefer to have .php files parsed by the PHP4 interpreter, you can add the following line in a .htaccess file:

AddHandler application/x-httpd-php4 .php

The PHP development team announced that support for PHP 4 will continue until the end of this year only, and there will be no more releases of PHP 4.4 after 2007-12-31. Following that announcement, we may stop supporting PHP 4 on our servers at any time after 2008-01-01.

 

[PHP Topic Index] - [Back to FAQ Topics Index]

 

 

 


Is there any PHP Manual?

For detailed information regarding PHP, you can go to their online manual: http://www.php.net/manual

 

[PHP Topic Index] - [Back to FAQ Topics Index]

 

 

 


Do you support php-nuke?

Our servers can run php-nuke. However, since it is 3rd party software we DO NOT provide tech support for the product.

 

[PHP Topic Index] - [Back to FAQ Topics Index]

 

 

 


Can I have my .html files parsed as PHP?

Yes, you can. To set your .html files to be parsed as PHP, you need to:

  1. Create an .htaccess file within the main folder for the hosting account
  2. Add this line to it:
  3. AddHandler application/x-httpd-php .html .htm

  4. Save the file

 

[PHP Topic Index] - [Back to FAQ Topics Index]

 

 

 


My PHP files generate a "500 server error" message.

The most common reason for "500 server error" message, output by a PHP script, are incorrect file permissions. You need to make sure that the PHP script itself and every other file or directory on the account does not have world-writable permissions (666, 777).

Our servers are running under SuExec environment and scripts are run with the username of their owner, and not with the user of the web server („apache“). Thus, if a script has to write to a file/directory, world-writable permissions are not needed
A file/directory with world-writable permissions is considered insecure, and cannot be used/executed.

 

[PHP Topic Index] - [Back to FAQ Topics Index]

 

 

 


Do you have ImageMagick, NetPBM or GD libraries on the server?

Yes, both ImageMagick and NetPBM are installed on our servers.

The path to the ImageMagick binaries is:

/usr/local/bin

The path to netPBM is:

/usr/local/netpbm/bin

Also, PHP is compiled with GD support.

 

[PHP Topic Index] - [Back to FAQ Topics Index]

 

 

 


How can I change the php.ini settings for my account?

You can modify the PHP settings by placing files named php.ini in each directory where you want to have the settings changed.

A php.ini file should contain the following lines for compatibility reasons:

post_max_size = 20M
memory_limit = 60M
upload_max_filesize = 20M
max_execution_time = 120
expose_php = off

You can then add lines that modify the PHP settings you want. For example, if you want to modify the session.save_path setting, the code you should include in the php.ini file would be:

session.save_path = "/new/session_path"
post_max_size = 20M
memory_limit = 60M
upload_max_filesize = 20M
max_execution_time = 120
expose_php = off

Note: php.ini files do not work recursively. This means that the settings are active only for the current directory, where the php.ini is, but not for its subdirectories. To modify the settings in the subdirectories, you would have to place a copy of the php.ini file there, too.

 

[PHP Topic Index] - [Back to FAQ Topics Index]

 

 

 


How do I set register_globals to Off for my account?

In order to turn off register_globals, you should create and use files named php.ini. A php.ini file should contain the following lines:

register_globals = off
post_max_size = 20M
memory_limit = 80M
upload_max_filesize = 20M
max_execution_time = 120
expose_php = off

The first line turns off the "register_globals" setting, and the rest of the lines are needed for compatibility reasons.

Note that php.ini files do not work recursively, and you need to add the file in each directory where you want the PHP behavior changed.

 

[PHP Topic Index] - [Back to FAQ Topics Index]