tags:

views:

135

answers:

3

hi i was going to start leaning php, and i cant setup a server, is there a good emulator, that will show me what im writing without having to run or be part of a server??

+1  A: 

There is no such thing as a PHP Emulator, but you can install an Apache/PHP/MySQL stack on your computer, while developping (actually, that's what almost every developper does).

If you are using Windows, take a look at, for instance, WAMPServer.

Pascal MARTIN
I think he is talking about a specific cloud computing platform. Update: Aah http://www.jolicloud.com however, I don't really get what it is.
Pekka
i am using jolicloud which is linux i tried easyphp and apache2is there a better server
penn2014
@penn what's wrong with Apache 2?
Pekka
the php emulator im talking about would be like, where you would write your scripts, then click something of a preview button and see what it would come out to be.
penn2014
@penn how is that not what Apache 2 does when you run a PHP script in it? Much of PHP development work is done that way: Work on the script, then run it in the browser. If something doesn't fit, work on the script, press `F5` in the browser.
Pekka
i think i got it.
penn2014
A: 

You need an actual installation of PHP to run scripts and you need a web server (like Apache) if you are making web pages with PHP.

I recommend XAMPP as a development and testing environment, if you don't have any special needs which you probably won't have. It has all you need to get started: Apache, PHP, MySQL and some nice and easy configuration tools.

Techpriester
let me try that i tried it when i was using ubuntu netbook remix but it wasn't working
penn2014
when i download it, it comes out as a tar.gz what do i do at this point
penn2014
i think xampp is working
penn2014
how do i add a cms to xampp
penn2014
A: 

I think what you really want is a PHP Integrated Development Environment. Look into Eclipse or Netbeans. You'l also need to install a real server on your computer & possibly setup something like XDebug.

Klinky