Running PHP scripts on stuweb.cms.gre.ac.uk

What version of PHP is currently running on stuweb.cms.gre.ac.uk?

stuweb.cms.gre.ac.uk currently supports PHP version 7.4.24 and PHP version 8.0.11.

You can see all the information required about PHP on stuweb.cms.gre.ac.uk by going to http://stuweb.cms.gre.ac.uk/test/info.php and https://stuweb.cms.gre.ac.uk/test/info.php8, which will also display any enabled extensions.

PHP files can be placed anywhere under the your ~/public_html directory in your Unix home area.

  • PHP filenames should end with .php for version 7 and .php8 for version 8.
  • PHP Scripts should start with <?php and end with ?>
  • Lines should end with a ‘;’ (semi-colon without the quotation marks) unless they are part of a loop, or are a ‘{‘ or a ‘}’ (left curly bracket or right curly bracket without the quotation marks).
  • Lines starting with ‘//’ (without the quotation marks) are comments
  • For details on setting permissions of uploaded files see here.

Comments are closed.