Carlo Gambino
21st July 2008, 18:33
Hello!
I made a small php file and uploaded it to my server to ensure I've set everything up correctly:
<HTML>
<HEAD>
<TITLE>PHP Testing</TITLE>
</HEAD>
<BODY>
<?php
echo "if this works, we <i>really</i> did it!";
?>
</BODY>
</HTML>
and confirmed the file was in the correct directory. When I call the file in a browser, I see the code, not the echo'd text. The code looks correct to me, but I am new to PHP. Is it the code or the configuration?
I made a small php file and uploaded it to my server to ensure I've set everything up correctly:
<HTML>
<HEAD>
<TITLE>PHP Testing</TITLE>
</HEAD>
<BODY>
<?php
echo "if this works, we <i>really</i> did it!";
?>
</BODY>
</HTML>
and confirmed the file was in the correct directory. When I call the file in a browser, I see the code, not the echo'd text. The code looks correct to me, but I am new to PHP. Is it the code or the configuration?