PHP: Difference between revisions

m Add Lily server and PHP versions supported
m Update to use H2 headers for better readability
 
Line 1: Line 1:
= PHP =
== PHP ==


PHP is the most popular scripting language on the Internet for a reason. It's easy to learn and easy to implement, yet is powerful enough to suit almost every task. Unlike some other languages, PHP is not explicitly linked with any programming paradigms, allowing for more flexible development. HelioHost offers the latest versions of PHP on all its hosting accounts. We are unique in that we offer PHP without safe mode, which is the more secure but less functional alternative that you'll find on most free hosts.
PHP is the most popular scripting language on the Internet for a reason. It's easy to learn and easy to implement, yet is powerful enough to suit almost every task. Unlike some other languages, PHP is not explicitly linked with any programming paradigms, allowing for more flexible development. HelioHost offers the latest versions of PHP on all its hosting accounts. We are unique in that we offer PHP without safe mode, which is the more secure but less functional alternative that you'll find on most free hosts.


= PHP Versions Supported =
== PHP Versions Supported ==


= Johnny server =
== Johnny server ==


* PHP 5.6
* PHP 5.6
Line 15: Line 15:
* PHP 8.3
* PHP 8.3


= Tommy server =
== Tommy server ==


* PHP 5.6
* PHP 5.6
Line 25: Line 25:
* PHP 8.3
* PHP 8.3


= Morty server =
== Morty server ==


* PHP 5.6
* PHP 5.6
Line 35: Line 35:
* PHP 8.3
* PHP 8.3


= Lily server =
== Lily server ==
* PHP 5.3
* PHP 5.3
* PHP 5.4
* PHP 5.4
Line 48: Line 48:
All versions of PHP supported on [[:Lily|Lily]] have 'exec()' enabled.
All versions of PHP supported on [[:Lily|Lily]] have 'exec()' enabled.


= Learning PHP =
== Learning PHP ==


'<?php' is the opening braces and '?>' is the closing braces for PHP.
'<?php' is the opening braces and '?>' is the closing braces for PHP.
Line 62: Line 62:
A good tutorial can be found here: [https://blog.udemy.com/php-tutorial/ https://blog.udemy.com/php-tutorial].
A good tutorial can be found here: [https://blog.udemy.com/php-tutorial/ https://blog.udemy.com/php-tutorial].


= Change PHP Version =
== Change PHP Version ==


Follow the navigation steps below to change your PHP version inside Plesk:
Follow the navigation steps below to change your PHP version inside Plesk:
Line 74: Line 74:
[[File:plesk-php-change-120-min.png]]
[[File:plesk-php-change-120-min.png]]


= PHP Version Changes Take Up To 2 Hours =
== PHP Version Changes Take Up To 2 Hours ==


{{Info|PHP version changes take '''up to 2 hours''' to go into effect as they require an Apache restart.}}
{{Info|PHP version changes take '''up to 2 hours''' to go into effect as they require an Apache restart.}}

Latest revision as of 17:34, 17 January 2025

PHP

PHP is the most popular scripting language on the Internet for a reason. It's easy to learn and easy to implement, yet is powerful enough to suit almost every task. Unlike some other languages, PHP is not explicitly linked with any programming paradigms, allowing for more flexible development. HelioHost offers the latest versions of PHP on all its hosting accounts. We are unique in that we offer PHP without safe mode, which is the more secure but less functional alternative that you'll find on most free hosts.

PHP Versions Supported

Johnny server

  • PHP 5.6
  • PHP 7.0
  • PHP 7.4
  • PHP 8.0
  • PHP 8.1
  • PHP 8.2
  • PHP 8.3

Tommy server

  • PHP 5.6
  • PHP 7.0
  • PHP 7.4
  • PHP 8.0
  • PHP 8.1
  • PHP 8.2
  • PHP 8.3

Morty server

  • PHP 5.6
  • PHP 7.0
  • PHP 7.4
  • PHP 8.0
  • PHP 8.1
  • PHP 8.2
  • PHP 8.3

Lily server

  • PHP 5.3
  • PHP 5.4
  • PHP 5.5
  • PHP 5.6
  • PHP 7.0
  • PHP 7.1
  • PHP 7.2
  • PHP 7.3
  • PHP 7.4
  • PHP 8.2

All versions of PHP supported on Lily have 'exec()' enabled.

Learning PHP

'<?php' is the opening braces and '?>' is the closing braces for PHP.

Here is a sample hello world file.

<?php
  echo "Hello World!";
?>

A good tutorial can be found here: https://blog.udemy.com/php-tutorial.

Change PHP Version

Follow the navigation steps below to change your PHP version inside Plesk:

Login > Plesk > [domain] > Dashboard tab > Dev Tools > PHP button > select PHP version from the dropdown menu

After the PHP version is changed, you will see a confirmation message that contains the timeframe for the change to take effect:

PHP Version Changes Take Up To 2 Hours

PHP version changes take up to 2 hours to go into effect as they require an Apache restart.


This page was last edited on 17 January 2025, at 17:34.