View Full Version : Running PHP files

08-24-2007, 05:26 PM
I have a html file with some php snippets inside. I saved it as index.php and now I want to run it. When I open it with a web browser it just displays the code I typed in.

I have php, mysql and apache installed on my computer, but dont know how to use them.

08-24-2007, 05:41 PM
I'll assume that you have put the index.php file into the Apache web server's document root folder and are opening it in your browser using something like - http://localhost/index.php

If you are doing both of the above and are seeing the actual source php code in the browser, then either php is not setup to work with the Apache web server or you are possibly using short open tags <? instead of <?php.

Tell us more about what you are doing and what you have done up to this point when you installed PHP.

08-24-2007, 09:24 PM
Well, I don't really know where my Apache root folder is. :o

08-24-2007, 09:33 PM
XAMPP google it download it and install it. its that simple :D great application too

08-24-2007, 10:30 PM
Nevermind, I figured it out.