Can I override php.ini settings?
Some variables in the php.ini file can be overwritten, you can do this creating a php.ini file in the directory you want to use, with the following command:
variable_name = variable_value
We cannot however offer any support for this should it not produce the desired results for your scripts.
For PHP5, use php5.ini instead of php.ini.
What version of PHP does QiQ Hosting run?
You can find out the version of different programs that QiQ hosting run by logging into your Control Panel. Select the Web Diagnostics section and then select 'Paths and Versions'. Note that this feature may not be available on some account types, and if this is the case, just contact our support team who will be able to help you.
You can use different versions of PHP by changing the extension on the script in question. To use PHP4 with a script, leave its extension as .php. If you want to use PHP5 with a script, change the extension to .php5.
If you wish to default all .php scripts in your hosting space to use PHP5, but do not want to change the extension, place this line into a .htaccess file in your FTP space
SetEnv DEFAULT_PHP_VERSION 5
I need to run PHP5 scripts with a .php file extension. How do I do this?
You need to specify the following in a .htaccess file:-
SetEnv DEFAULT_PHP_VERSION 5
This means that any php file ending in .php will be executed as PHP5 rather that PHP4.
What are the correct file permissions for a PHP script?
To avoid any problems, you should set your PHP scripts file permissions to 644, or user read and write, group and world read.
Is PHP a CGI or Apache module?
PHP runs as a cgi at QiQ – this is because it is more secure than running it as an Apache module (if it runs as an Apache module PHP runs as the same user with the same rights as Apache).
Do you support PHP5?
Yes all the web servers support PHP5.
To preserve our current PHP setup all existing scripts are unaffected by PHP5, customers wishing to run PHP5 should call their PHP5 script something.php5 which will ensure that the web server runs the script as a PHP5 file.
The following modules are available:-
GD (inc GIF JPG, PNG & WBMP)
WDDX Session Serialiser
Hashing Engines: md4 md5 sha1 sha256 sha384 sha512 ripemd128 ripemd160 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32 crc32b haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5
iconv support (character set conversion)
sqlite2, sqlite (Flat File database drivers)
Runtime configuration of PHP5 is done using php5.ini rather than php.ini.
Can PHP/PHP5 code be put in files with the .html/htm file extension?
Because PHP runs as CGI rather than an Apache module PHP scripts need the extension .php or .php5. HTML however, can run within pages with the PHP file extensions.