Forum Moderators: phranque
Another way is to save the file as just "test" (without any extension), and upload it to the server. Your root directory will probably have an .htaccess file. Download it, and add this to the .htaccess file:
<Files test>
ForceType application/x-httpd-php
</Files>