How to change my PHP version?

We are glad to inform you that you can change the current version of PHP even in a shared hosting environment. This is free of charge for all our clients, as a complimentary service that we offer via cPanel. In order to perform the change, please follow these steps: Access your cPanel account Access Select PHP Version from Software and ...

How to change the max memory and max upload limit?

Changing PHP variables is easy on our shared hosting plans. You have full control and you can easily configure specific PHP setup for your account. This can be achieved via cPanel so you do not need to contact the Support team for that. In order to change the memory_limit and upload_max_filesize values, you need to access your ...

Do you support GCC compiler?

GCC compilers are not supported on Ultahost.com our servers. You can still install it on our VPS packages: https://ultahost.com/vps-hosting

How can I change the php.ini file?

Access to the php.ini file is not allowed for Shared Hosting customers here. However, most PHP values and settings can be used by using the .htaccess file with the help of php_flag.

How can I modify the PHP timezone setting for my website?

Your server's Global time configuration cannot be changed, but you can use the PHP function date_default_timezone_set to set the timezone for your website. Here's an example code that sets and checks the currently set timezone: <?php date_default_timezone_set("Asia/Bangkok"); echo date_default_timezone_get(); ?> A list of available PHP timezones can be ...

How to parse PHP in HTML files?

If you want to make all of your website's .html pages to run as .php files instead (parsing PHP in HTML files), all you need to do is add the following line to your .htaccess file: AddHandler application/x-httpd-lsphp .htm .html IMPORTANT: Make sure to make backups of your original .htaccess file, as making changes to this file can disrupt ...

How to turn off PHP error reporting?

To turn off PHP error reporting you can use the following snippet in your PHP script: error_reporting(0); Just remember to call this before any other PHP directive. Alternatively, you can add this line to your .htaccess file (it is located in your public_html folder) to suppress any php error messages: php_flag display_errors off

I get 'Invalid argument supplied' message

If you see error message 'invalid argument supplied' or similar error message in your script, it means there is a problem with your script coding (it's not related to hosting servers). You can find a solution here: http://www.google.com/search?q=PHP+Invalid+argument+supplied

I get 'unexpected T_STRING' error

You may get this error because all .html files are parsed as PHP here. So, if your .html file contains "<?" or "?>" tags/text (which shows for file parser that PHP code started), you get this error. This can happen with XML files if they are not using correct content type. If order to fix this error you need ...

Is allow_url_fopen enabled on your servers?

PHP function allow_url_fopen is enabled on all of our Shared Hosting packages. 

Parse error: syntax error, unexpected T_PRIVATE

If you get error message 'unexpected T_PRIVATE' or similar error in your script, make sure your script does not use "reserved" variables. For example, $private is "reserved" variable in PHP5, so rename $private to something else and everything should work fine. To learn more see this link: http://www.google.com/search?q=unexpected+T_PRIVATE

PHP Fatal error: Cannot redeclare

If you see error message 'PHP Fatal error: Cannot redeclare function' or similar error message in your script, it means there is a problem with your script code (it tries to declare the same function multiple times).This error says that your function is already defined. This could mean: you have the same function defined in two files you have ...

Do you support GCC compiler?

GCC compilers are not supported on ultahost.com our servers. You can still install it on our VPS packages: https://ultahost.com/vps-hosting.