0

hi frends

i'm a novice in php...

i just installed php and apache 2.2.x webserver and just wanted to try some very basic stuff...

<html>
<body>

<?php
echo "Hello world";
?>

</body>
</html>

but rather than showing the output in the browser it shows the whole code....

could nybody help me plz?

3
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by phper
0

Is your file saved with a php extension?

If you have htm or html as the extension, it won't be sent to the php interpreter and will just be displayed as if it were html.

0

You can configure php to run in .html and .htm files.

Have you ensured that the PHP module / CGI Binary is loaded in to Apache?

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.