{"id":366,"date":"2019-08-19T10:20:44","date_gmt":"2019-08-19T09:20:44","guid":{"rendered":"https:\/\/blogs.gre.ac.uk\/cmssupport\/?page_id=366"},"modified":"2019-08-19T10:20:44","modified_gmt":"2019-08-19T09:20:44","slug":"running-php-scripts-on-stuweb-cms-gre-ac-uk","status":"publish","type":"page","link":"https:\/\/blogs.gre.ac.uk\/cmssupport\/application-development\/programming\/php\/running-php-scripts-on-stuweb-cms-gre-ac-uk\/","title":{"rendered":"Running PHP scripts on stuweb.cms.gre.ac.uk"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">What version of PHP is currently running on stuweb.cms.gre.ac.uk?<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>stuweb.cms.gre.ac.uk currently supports PHP version 7.4.24 and PHP version 8.0.11.<\/p>\n\n\n\n<p>You can see all the information required about PHP on stuweb.cms.gre.ac.uk by going to\u00a0<a href=\"http:\/\/stuweb.cms.gre.ac.uk\/test\/info.php\">http:\/\/stuweb.cms.gre.ac.uk\/test\/info.php<\/a> and <a href=\"https:\/\/stuweb.cms.gre.ac.uk\/test\/info.php8\">https:\/\/stuweb.cms.gre.ac.uk\/test\/info.php8<\/a>, which will also display any enabled extensions.<br><br>PHP files can be placed anywhere under the your\u00a0~\/public_html\u00a0directory in your\u00a0<a href=\"https:\/\/blogs.gre.ac.uk\/cmssupport\/systems\/unix\/unix-home-area\/\" data-type=\"URL\">Unix home area<\/a>.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>PHP filenames should end with .php for version 7 and .php8 for version 8.<\/li><li>PHP Scripts should start with\u00a0&lt;?php\u00a0and end with\u00a0?&gt;<\/li><li>Lines should end with a &#8216;;&#8217; (semi-colon without the quotation marks) unless they are part of a loop, or are a &#8216;{&#8216; or a &#8216;}&#8217; (left curly bracket or right curly bracket without the quotation marks).<\/li><li>Lines starting with &#8216;\/\/&#8217; (without the quotation marks) are comments<\/li><li>For details on setting permissions of uploaded files\u00a0<a href=\"http:\/\/ach-support.gre.ac.uk\/unix\/stuweb.html#php_upload\">see here<\/a>.<\/li><\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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\u00a0http:\/\/stuweb.cms.gre.ac.uk\/test\/info.php and https:\/\/stuweb.cms.gre.ac.uk\/test\/info.php8, &hellip;<\/p>\n","protected":false},"author":53,"featured_media":0,"parent":122,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-366","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blogs.gre.ac.uk\/cmssupport\/wp-json\/wp\/v2\/pages\/366","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.gre.ac.uk\/cmssupport\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blogs.gre.ac.uk\/cmssupport\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.gre.ac.uk\/cmssupport\/wp-json\/wp\/v2\/users\/53"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.gre.ac.uk\/cmssupport\/wp-json\/wp\/v2\/comments?post=366"}],"version-history":[{"count":0,"href":"https:\/\/blogs.gre.ac.uk\/cmssupport\/wp-json\/wp\/v2\/pages\/366\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/blogs.gre.ac.uk\/cmssupport\/wp-json\/wp\/v2\/pages\/122"}],"wp:attachment":[{"href":"https:\/\/blogs.gre.ac.uk\/cmssupport\/wp-json\/wp\/v2\/media?parent=366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}