Hi,
I’m totally new to PHP. I installed the latest PHP on my macbook and now i just want to run a .php file. I’m using Dreamweaver to program, and Safari/Firefox to view.
I made a simple program which echo’s “hello David”. However, when i double-click the file, the browser displays the coding!!! Like this:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<?php
$txt="hello David";
echo $txt;
?>
</body>
</html>
I know…typical ‘newbie’ question But, hey, thats how you learn.
Anyone know how to do this in OS X?
Cheers,
Dave