[ Skip to content]

Science and Engineering at The University of Edinburgh

School of GeoSciences

Information Technology Services

PHP on Xweb

We run PHP (version 5) on xweb as if it were a CGI script.

Put your PHP scripts into your cgi_bin directory.

The PHP script needs to be told where the interpreter is, do this by changing the start of your script to read "#!/usr/local/php5/bin/php-cgi";

Here's an simple example:

#!/usr/local/php5/bin/php-cgi

<?php
phpinfo();
?>

If you have problems please read this.

© School of GeoSciences --- Privacy & Cookies --- Last modified: 26 Feb, 2009 --- Page contact: