When transferring or creating php files on the web server (cobweb) you will need to change the permissions of the file so that it can be executed as a script.
To change the php file permissions type the following command:
chmod 755 filename.php