I'm just starting to learn about php and mysql. I've downloaded both and installed both. The mysql is (eventually) working fine, but not the php.
I've created a simple hello world script, but it doesn't work
<html>
<head>
<title>PHP Start</title>
</head>
<body>
<?php
echo "Hello World";
?>
</body></html>
When I double-click on hello.php, or try to open it in my browser, a dos window opens up for a few secs, stays blank for a few more secs, then disappears. Nil else!
I can do something from the command line,
C:\php\php Scripts> php hello.php > hello.html
This will give me an html file that works ok, but php isn't supposed to work like that is it? I thought that opening a .php file in a browser would, somehow or other, call up php.exe and convert the php code into html, then pass that to the browser. But it's not happening.
Can someone tell me how to properly open a .php file in a browser?