Scripting: Introduction to PHP
Understanding the Importance of Which PHP Version you Use
The PHP coding language is constantly being developed and improved upon. With each new version that is released, some PHP functions and capabilities may be removed while others are introduced. Each new version of PHP aims to increase the security and capabilities of what the language can do.
Older PHP applications and website builders may be designed to run with an older version of PHP, and might not run at all on newer versions. Likewise, newer or up-to-date PHP applications might only work when running on the more recent versions of PHP. To accommodate whichever application you choose to use, Netfirms allows you to pick from several pre-installed PHP versions.
To learn how to switch which PHP version your hosting account is using, Scripting: How to Switch Your PHP Version.
PHP offers a way to be able to modify or make changes to the scripting of your website. Some of the usual things you can do on this page are;
- Update PHP Version
- Increase Memory Limit
- Increase PHP Upload Size Limit
- Install Zend Guard Loader And IonCube
- Disable PHP Functions
- Designate the PHP Session Save Path
Notable Scripting Restrictions
Some PHP applications may require a larger memory limit than the default set within the php.ini. You can change your php.ini file to allow for greater memory use, but the set limit cannot exceed 64MB. If you are still running into memory issues even after maxing out your php.ini limits, you will need to either contact us to inquire about a more powerful hosting platform or reconsider how your website is built.
Some scripts require a significant amount of time to run before they are completed. Allowing scripts to run indefinitely could cause vastly negative effects for your website performance as well as the performance of other Netfirms customers. As such, all PHP/CGI/Perl scripts are limited to 60 seconds of run time. If a script requires more than 60 seconds to run, it will be stopped at 60 seconds (for example, if a PHP script allows a website visitor to upload a file, and the file takes longer than 60 seconds to upload, the file upload will be canceled).
Netfirms' Coding and Scripting Support
Netfirms does not provide support for custom code or custom scripts. Any tools provided by Netfirms (Control Panel Tools, Support Articles, etc) are meant only for advanced users who are knowledgeable enough to handle their scripts using those tools (see Netfirms' User Agreement).
If you have limited experience or feel uneasy about working with these scripting languages in a way that suits your needs, we encourage you to consider hiring a web developer to assist. You can utilize a third-party web developer, or explore several paid services provided by Netfirms including:
- Call 866-317-4678 for our Professional Services
- Full Service
Feel free to contact us for more information.
The php.ini File FAQs
What is the php.ini file
The php.ini controls how PHP code runs on your hosting account.
Can the php.ini file be modified
Yes. Most shared hosting accounts will have direct access to modify the php.ini file that is pre-installed onto the server. If an account does not have this feature, a php.ini file can be uploaded and modified manually using FTP.
Is there a way to reset the php.ini file back to its default settings
Accounts that have direct access to modify the php.ini file will also have access to a feature that allows them to reset the php.ini file back to server recommended defaults. Otherwise, the account will need to upload a backup of their original php.ini file via FTP.
We have put together several guides to help you understand how to make common modifications to your php.ini file. Simply click on one of the following links to get started. You can also call us at 866-317-4678 to have our Netfirms Professional Services team make changes for a small fee.
- Scripting: How to Switch Your PHP Version
- Scripting: How To Install Zend Guard Loader And IonCube
- Scripting: How to Increase PHP Memory Limits
- Scripting: How to Increase PHP Upload Size Limits
- Scripting: How to Disable PHP Functions
- Scripting: How to Designate the PHP Session Save Path
Related articles:How to Update Your PHP Version - Video
How to Update PHP for WordPress
How To Change Your PHP Version
Scripting: How To Install IonCube for PHP 7.0 - 7.4