How to view PHP files on your computer.

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

User avatar
William
Forum Contributor
Posts: 332
Joined: Sat Oct 25, 2003 4:03 am
Location: New York City

How to view PHP files on your computer.

Post 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.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Oh, this is one of those precompiled combo packs. Cool.
User avatar
William
Forum Contributor
Posts: 332
Joined: Sat Oct 25, 2003 4:03 am
Location: New York City

Post by William »

huh????? And where was this moved? Am i in trouble?
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post by Nay »

There's tons of apps like this out there. I use AppServ.

Nothing new dude o.O...

-Nay
User avatar
William
Forum Contributor
Posts: 332
Joined: Sat Oct 25, 2003 4:03 am
Location: New York City

Post by William »

Umm... Sence there is always somone on the forum wanting to know was like 3 days ago anther one asked and i replyed you can unless you make your self a serverl... I said (NEW PHP PROGRAMERS) did i say anyone else.... :twisted: :twisted: :twisted: :twisted: :twisted: :twisted: :twisted: :twisted: :twisted: :twisted: :twisted: , O well.... Guess you nead to read my posts better... o well i wont fight with you... Thats what MSN is for :)
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Re: How to view PHP files on your computer.

Post 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
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post 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.
User avatar
William
Forum Contributor
Posts: 332
Joined: Sat Oct 25, 2003 4:03 am
Location: New York City

Post by William »

ok, And nay STOP THAT :twisted: , Isnt there a way to block people from seeing your posts? j/k
joetheeskimo5
Forum Commoner
Posts: 43
Joined: Sun Dec 14, 2003 4:47 pm
Location: US
Contact:

Post 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?? :?
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post 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
joetheeskimo5
Forum Commoner
Posts: 43
Joined: Sun Dec 14, 2003 4:47 pm
Location: US
Contact:

Post 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?
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

Yes

Do what I said above, Add that line to your httpd.conf
User avatar
William
Forum Contributor
Posts: 332
Joined: Sat Oct 25, 2003 4:03 am
Location: New York City

Post 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 :-D, UPlaod ti in htdocs and bamb can view php files....
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post by infolock »

apache isn't that hard to install if you just follow the directions :P

installing php as a module on apache is also very simple.

both are well documented in the readme files included with the installation packages.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

yeah not to mention MySQL is a simple job too.
Post Reply