Possible Duplicate:
Parse a JavaScript file through PHP
PHP no longer working inside javascript
I am running .php files on my localhost and yesterday they worked and today they have errors, but I haven't changed the code. Here is a test file that has the same error as my longer actual code:
<html>
<script type="text/javascript">
<? $message = "Hello"; ?>
</script>
<? echo $message; ?>
</html>
I know this is a silly way to write Hello, but it demonstrates what error I am getting when I try to use php inside javascript. It was working perfectly fine yesterday and none of the code has changed. When I run this, it says "unexpected token <" on line 3. I think it is a problem with apache/php/mysql but I'm lost trying to fix it. Any suggestions would be great. Thanks.