PDA

View Full Version : .PHP



Shibby-Shabs
26-08-2009, 08:13 AM
How can you view .PHP files that are on your desktop?

BoyBetterKnow
26-08-2009, 08:18 AM
To view them running you will need to setup apache on your machine.

Get this: http://www.apachefriends.org/en/xampp.html

Install it in C:/ or the default.

Once isntalled go to C:/xampp/

then open xampp-control and start the umm top 3 services.. apache mysql etc. You don't need filezilla.

Once you've started them all, copy your php file into xampp/htdocs and then go to http://localhost/phpfileyounamed.php

Lol.

Shibby-Shabs
26-08-2009, 08:29 AM
Ok so I tried to open it and it automaticly tries to download the file, I stated Apache, MySQL and mercury. the only one left is filezilla and Tomcat which seems to be disabled.. should i be ticking the Svc boxes?

BoyBetterKnow
26-08-2009, 08:38 AM
Ok so I tried to open it and it automaticly tries to download the file, I stated Apache, MySQL and mercury. the only one left is filezilla and Tomcat which seems to be disabled.. should i be ticking the Svc boxes?

Yeh i said to tick the tickboxes.

Shibby-Shabs
26-08-2009, 08:43 AM
Done - but my browser is trying to download files so i can't view.

BoyBetterKnow
26-08-2009, 08:48 AM
Done - but my browser is trying to download files so i can't view.

Where are you viewing the file ?

Shibby-Shabs
26-08-2009, 08:49 AM
C:\xampp\htdocs\possiblesite
I have tried with MS Internet Explorer and Google Chrome :S

BoyBetterKnow
26-08-2009, 08:51 AM
C:\xampp\htdocs\possiblesite
I have tried with MS Internet Explorer and Google Chrome :S

You need to read what I tell you.

View it as http://localhost/possiblesite

Load that link k?

Shibby-Shabs
26-08-2009, 08:52 AM
Awwww, I see. +Rep and thanks for help :D

Jack!
27-08-2009, 09:37 AM
you could of just opened it in IE or firefox

BoyBetterKnow
27-08-2009, 09:55 AM
you could of just opened it in IE or firefox

No you couldn't. You need localhost software installed.

Jack!
27-08-2009, 11:17 AM
I dont, i just double click it and open with firefox or IE

BoyBetterKnow
27-08-2009, 11:23 AM
I dont, i just double click it and open with firefox or IE

Oh okay. Well I'm sure that by default it goes to root doesn't it ?

Jonster
27-08-2009, 11:23 AM
I dont, i just double click it and open with firefox or IE

Try it with a .php file pls and then apologise for your stupidity.

Jack!
27-08-2009, 11:41 AM
I apologise, lols yes it goes to root, but i was opening via my server

Want to hide these adverts? Register an account for free!