PDA

View Full Version : Php offline?



jzhang1013
09-25-2008, 04:30 AM
Hey this i probably a very noob question, but php can't be viewed offline like on my desktop correct?

codeexploiter
09-25-2008, 07:10 AM
You can install a Web Server in your local PC and through that you can access the PHP pages. But if you are looking for opening a PHP page by double-clicking on it, it is not going to happen as PHP pages should be loaded via a web server.

If you are working in Windows Environment then I think you can use XAMPP (http://www.apachefriends.org/en/xampp.html)

Hope this helps.

boogyman
09-25-2008, 03:23 PM
One thing you forgot to mention codeex is that when you make your computer into an active server to view some php or other code locally, you are also opening up portions to the outside world, so you would need to be careful about the additional ports and stuff.

Twey
09-25-2008, 10:03 PM
Kind of, by piping it into your browser via the PHP interpreter. There doesn't have to be a webserver involved, and it's even possible (but not very fun: PHP is specialised for web apps) to write desktop applications in PHP.