One Hell of a Week

Posted in capacity as Module Leader Group Software Development, Department of Computing Sheffield Hallam University A Morgue One hundred students, 10 clients, 5 labs of University PCs, overzealous Facilities department and the Sheffield weather. What could possibly go wrong? Last week was ‘Scrum Week’. Nineteen groups of students working flat out 9-5, Monday to Friday…

Read More

Getting Path Information with PHP

Given a true path of: PHP Output Notes $_SERVER[‘DOCUMENT_ROOT’]; /var/www true document root $_SERVER[‘HTTP_HOST’] www.mustbebuilt.co.uk Host name $_SERVER[‘PHP_SELF’] /stuff/more/file.php Path of current file So combining $_SERVER[‘HTTP_HOST’] with $_SERVER[‘PHP_SELF’] would get the full path to the file ie: PHP Output $_SERVER[‘HTTP_HOST’].$_SERVER[‘PHP_SELF’]; www.mustbebuilt.co.uk/stuff/more/file.php The pathinfo() method can then be used to return an associate array of useful…

Read More