Avenirer is on the right track. If you're seeing the <?php tag in "View Source", the code isn't being processed by the server. If it's a JavaScript (.js) or HTML (.htm/html) file, the server may not be sending it through the PHP parser, so you may have to change the file extension or load the file from a PHP script to ensure the PHP tags are parsed properly before being sent to the client.