
Home » Frequently Asked Questions (FAQ) » PHP
PHP is an open source, server-side, cross-platform, HTML embedded scripting language that is often used as a front-end for databases, such as MySQL.
What extension should be used for PHP scripts? #
PHP scripts need to have a .php extension.
What version of PHP are your servers using? #
All of our servers are running PHP 5.2.
Where can you find additional information on PHP, including online script resources? #
PHP (official website)
PHP Tutorials (Open Directory)
Do you know a good resource for free PHP scripts? #
Check out ScriptSearch.com.
What information and server paths are needed to run a PHP script? #
PHP scripts need to have a .php extension.
public directory absolute path = /var/www/vhosts/yourdomain.com/httpdocs
path to sendmail = /usr/sbin/sendmail
path to the date program = /bin/date
include path = .:/usr/share/php:/php/includes:/usr/share/pear
Is PHP configured with Safe Mode disabled? #
Yes, Safe Mode is disabled on our servers.
Is PHP configured with register_globals enabled? #
For security reasons, our servers have PHP configured with register_globals set to “Off” (this is PHP’s default setting). If you have a PHP script that requires this function, please try to reconfigure the script so that it does not require register_globals or if there is no way around it, just let us know through our Help Desk and we will enable register_globals for your specific domain. We can also give you suggestions on how to rewrite your scripts so that they do not need to use register_globals. Here’s The PHP Group’s documentation on why register_globals is off by default.
Is PHP configured with allow_url_fopen enabled? #
For security reasons, our servers have PHP configured with allow_url_fopen set to “Off”. If you have a PHP script that requires this function, please try reconfigure the script so that it does not require allow_url_fopen or if there is no way around it, just let us know through our Help Desk and we will enable allow_url_fopen for your specific domain. We can also give you suggestions on how to rewrite your scripts so that they do not need to use allow_url_fopen. Here’s The PHP Group’s documentation on fopen.
Is PHP configured with magic quotes turned on? #
Yes, magic quotes GPC is enabled on all of our servers.
Is Zend Optimzer installed on your servers? #
Yes, Zend Optimzer is installed on all of our servers.
Is PHP compiled with ImageMagick and the GD Graphics Library? #
Yes, all of our servers have PHP complied with the ImageMagick Extension and the GD Graphics Library version 2.0.
Is PHP error logging enabled? #
Yes, PHP errors are automatically logged to your error log file which you can access through your control panel.
A PHP script is not working, are you able to help install and troubleshoot it? #
PHP script debugging is beyond the scope of the support that we provide. This is a web development issue and we do not offer any in-house web development/consulting services. We make sure that PHP is enabled for your website, PHP is working properly on the server, that you are provided with the correct path information and we can even help point you in the right direction, but we do not have the resouces to debug, install or develop your scripts.
Here are a few things to try when you are troubleshooting a PHP script:
What is the maximum upload for file uploads? #
For stability reasons we have the maximum file size for uploads in PHP limited to 16M.