# Viewing PHP Files

Category: Geeks r Us

## Post 1 by Harmony (I've now got the silver prolific poster award! wahoo!) on Sunday, 22-Nov-2009 12:10:17

I've got XAMPP installed on my laptop, but still can't view PHP files I've made. Does anyone know how to fix this or if there is a setting I need to change? If not, are there any other ways of seeing my PHP files?

## Post 2 by b3n (I'm going for the prolific poster awards!) on Sunday, 22-Nov-2009 21:27:24

When you say viewing, do you mean the code or the output that the code creates?
IF your looking to view your code which seems a bit strange since you wrote it, then something like notepad will do the trick; when you save, make sure that you slect all files in the save as type dropdown and that you enter file.php and not just file.
I've heard of wamp and lamp, but not xamp - I assume its the same as wamp. If this is true, you need to save your php files in the /www directory of apache (It would have asked you in the installer or if not, it will say in the documentation) and then to view them, you type in ie or run or what ever you use:
http://localhost/file.php
replacing file.php with the name of your script.
Hth.

## Post 3 by Harmony (I've now got the silver prolific poster award! wahoo!) on Monday, 23-Nov-2009 11:31:09

I'm wanting to see the output of my code. I normally write it in notepad and save it with a php extension.