Page 1 of 3
How to view PHP files on your computer.
Posted: Fri Dec 19, 2003 10:18 pm
by William
Hello, I am sure lots of you knew PHP programers have are wondering how you can view PHP files on your computer. Well you can download a program that allows you here:
http://www.apachefriends.org/xampp-en.html once downloaded all you have to do is unzip it somewhere on your computer go into htdocs, and put your PHP files in there, Then run apache_start.bat and leave it on then all you do is go into Internet Explorer or what ever you use and tpye in
Http://LocalHost/Your-File.php, or if you have a folde rin htdocs it whould be:
Http://LocalHost/Folder/Names/Here/File-Name.php 
, Well there you go good luck.
Posted: Fri Dec 19, 2003 10:53 pm
by m3mn0n
Oh, this is one of those precompiled combo packs. Cool.
Posted: Fri Dec 19, 2003 11:13 pm
by William
huh????? And where was this moved? Am i in trouble?
Posted: Fri Dec 19, 2003 11:48 pm
by Nay
There's tons of apps like this out there. I use
AppServ.
Nothing new dude o.O...
-Nay
Posted: Sat Dec 20, 2003 1:05 am
by William
Re: How to view PHP files on your computer.
Posted: Sat Dec 20, 2003 2:23 am
by Nay
The Hidden Viper wrote:Hello, I am sure lots of you knew PHP programers have are wondering how you can view PHP files on your computer.
Nice spelling
-Nay
Posted: Sat Dec 20, 2003 2:58 am
by m3mn0n
I moved this from PHP - Code because this isn't a PHP code question, it's a link to Apache/PHP/MySQL software. It was either move to General or Misc.
Posted: Sat Dec 20, 2003 5:40 am
by William
ok, And nay STOP THAT

, Isnt there a way to block people from seeing your posts? j/k
Posted: Sun Dec 21, 2003 11:31 am
by joetheeskimo5
Thanks for postin this, I am a n00b at PHP by all means, but can't you also view PHP files on your computer by just installing PHP, apache, and MySQL??

Posted: Sun Dec 21, 2003 11:34 am
by Pyrite
Sure of course. PHP files are just text files. Use any text editor.
You could also have Apache show the source for all your php files instead of running them.
AddType application/x-httpd-php-source .php
Posted: Sun Dec 21, 2003 11:36 am
by joetheeskimo5
I don't want to only look at the source, I want to actually view them in iexplorer. Can I do that with MySQL, Apache, and/or PHP?
Posted: Sun Dec 21, 2003 11:38 am
by Pyrite
Yes
Do what I said above, Add that line to your httpd.conf
Posted: Mon Dec 22, 2003 12:03 am
by William
lol, See apache is hard to install on a system

, This site has apache in the program! And all you do is open a file.... ANd if tyou ntoice it has the word apache in it! It is apache... And i dont know how but this thing allows to you have MySQL databses on your pc to

, So... Just do what is aid in first post and you will haver apache running

, UPlaod ti in htdocs and bamb can view php files....
Posted: Mon Dec 22, 2003 1:33 am
by infolock
apache isn't that hard to install if you just follow the directions
installing php as a module on apache is also very simple.
both are well documented in the readme files included with the installation packages.
Posted: Mon Dec 22, 2003 2:38 am
by m3mn0n
yeah not to mention MySQL is a simple job too.