{"id":363,"date":"2019-08-19T10:11:03","date_gmt":"2019-08-19T09:11:03","guid":{"rendered":"https:\/\/blogs.gre.ac.uk\/cmssupport\/?page_id=363"},"modified":"2019-08-19T10:11:03","modified_gmt":"2019-08-19T09:11:03","slug":"running-php-scripts-on-stuiis-cms-gre-ac-uk","status":"publish","type":"page","link":"https:\/\/blogs.gre.ac.uk\/cmssupport\/application-development\/programming\/php\/running-php-scripts-on-stuiis-cms-gre-ac-uk\/","title":{"rendered":"Running PHP scripts on stuiis.cms.gre.ac.uk"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">PHP pages work in much the same way as ASP pages. Put the PHP file onto your <a href=\"drive\" data-type=\"URL\" data-id=\"I: drive\">I: drive<\/a> and then using a web browser enter the address.<br><br><strong>https:\/\/stuiis.cms.gre.ac.uk\/username\/filename.php<\/strong><br><br>It is recommended that you use a text editor such as Notepad++ or Brackets to create and edit your PHP pages in order to take advantage of features such as line numbers (for debugging) and syntax colour coding.<br><br>The following points should be noted about php scripts:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>PHP Scripts should start with&nbsp;&lt;?php&nbsp;and end with&nbsp;?&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><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>PHP pages work in much the same way as ASP pages. Put the PHP file onto your I: drive and then using a web browser enter the address. https:\/\/stuiis.cms.gre.ac.uk\/username\/filename.php It is recommended that you use &hellip;<\/p>\n","protected":false},"author":53,"featured_media":0,"parent":122,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"footnotes":""},"class_list":["post-363","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blogs.gre.ac.uk\/cmssupport\/wp-json\/wp\/v2\/pages\/363","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=363"}],"version-history":[{"count":0,"href":"https:\/\/blogs.gre.ac.uk\/cmssupport\/wp-json\/wp\/v2\/pages\/363\/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=363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}