Hi everyone
This is my "hello.php" file:
When I load it thorough my browser typing at the address bar:
I get an "Hello world" declaration on my display.
Then I create an hello.HTML file with the following code:
when I load "hello.html" and click "php" anchor, what I get at my display is the php file's source code.
I dont get the desired "Hello world".
Could anyone tell me why and what should I change to make the browser show "Hello" and not the source code?
Thanks
This is my "hello.php" file:
Code:
<?php
$myConnection = NEW MYSQLI('localhost','root','a','b');
IF(!$myConnection)
DIE('ccc' .MYSQLI_CONNECT_ERROR());
echo 'Hello world';
?>
I get an "Hello world" declaration on my display.
Then I create an hello.HTML file with the following code:
Code:
<!DOCTYPE>
<html>
<head>
</head>
<body>
<a href="hello.php">php</a>
</body>
</html>
I dont get the desired "Hello world".
Could anyone tell me why and what should I change to make the browser show "Hello" and not the source code?
Thanks