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

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.

http://stuiis.cms.gre.ac.uk/username/filename.php

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.

The following points should be noted about php scripts:

  • 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

Comments are closed.