Running PHP on my machine locally?
<p>I download xampp 1.7.7 and it has PHP and MySQL. I bought a book named <em>HeadFirst PHP MySQL</em>. My problem is that I can't run the examples from the book. </p>

<p>The example files consist of 2 files: one HTML, and one PHP file. The example is like this you fill the form from HTML file then send it to a web server then the php will handle the HTML file then return it to you. </p>

<p>When I filled the form then I click the submit button, it didn't return what it was supposed to return. What it returns is the actual PHP code. </p>

<p>Do I need to transfer all the files from the book to a webhost so that I cant try the examples I said? How can I run it locally?</p>

<p>UPDATE!!<br>
I tried what anselm said now it says OBJECT not found... url not found then the 404 error.</p>
