I can't get this to work. I am running it locally on my XP workstation. I made it an html file and openned it with IE, but there is no output. Any ideas why?
<html> <head> <title>Example</title> </head> <body> <?php echo "Hi, I'm a PHP script!"; ?> </body> </html>
<html> <head> <title>Example</title> </head> <body>
<?php echo "Hi, I'm a PHP script!"; ?>
</body> </html>
What do you see when you view source?
Originally posted by bubblenut What do you see when you view source?
I see this:
OK, I put this code onto a server which has php on it and still nothing...any other ideas?
Nevermind...I figured it out...I was giving the file a .html extension instead of .php 🙂