Just to expound upon what cretaceous has already pointed out:
jwzumwalt wrote:This works ok on my web server but will not work on my localhost.
Sounds like you've got a configuration mismatch. As cretaceous suggests, the problem is with your script (and/or localhost) not on your remote web server. The 'short_open_tag' PHP directive should be disabled nowadays.
This is an excellent example of why your development environment (e.g. localhost) should have the same configuration (or as close as possible) as your production environment (e.g. remote web server).
jwzumwalt wrote:I tried <?php $this_script ?> but it still does not work.
Actually, it probably did work - it just wasn't what you wanted.
That code snippet doesn't actually do anything. It's the same as writing:
<?php
"Hello world";
?>
which also won't do anything. However, if you write:
<?php
echo "Hello world";
?>
you will of course see Hello world as the output because you told PHP to actually do something (such as [man]echo[/man] the string).