Page 1 of 1
PHP newbie
Posted: Mon May 17, 2010 11:09 am
by HuwD
Hi Guys,
I am a .NET developer and looking to expand into doing PHP aswell to broaden my skill base. I've had a look at a number of PHP tutorials and as yet have not found a single one that explains in a nice simple step-by-step manner, how to run PHP scripts on a local machine during development. I don't actually have to upload the script to a webserver everytime I want to test if something works do I coz that seems kinda time consuming. In .NET you just hit run and it runs the application. Surely PHP must have some kind equivelant. If anyone knows of a tutorial of this kind can you please point me towards it.
Any help on how just get past this first step and get a simple PHP script running would be greatly appreciated.
Thanks
Re: PHP newbie
Posted: Mon May 17, 2010 11:23 am
by mikosiko
HuwD wrote: In .NET you just hit run and it runs the application
so... you mean that you dont't have to have Windows or the .Net framework installed and just "hit run" to run an application?
you need to have a webserver installed IIS or Apache, PHP and if you are going to use a database obviously one should be present too.... you can install everything as a "package" with a Wamp / Xamp distro or install everything manually (the method that I will recommend if you want to know how things works).
miko
Re: PHP newbie
Posted: Mon May 17, 2010 12:08 pm
by AbraCadaver
HuwD wrote:Hi Guys,
I am a .NET developer and looking to expand into doing PHP aswell to broaden my skill base. I've had a look at a number of PHP tutorials and as yet have not found a single one that explains in a nice simple step-by-step manner, how to run PHP scripts on a local machine during development. I don't actually have to upload the script to a webserver everytime I want to test if something works do I coz that seems kinda time consuming. In .NET you just hit run and it runs the application. Surely PHP must have some kind equivelant. If anyone knows of a tutorial of this kind can you please point me towards it.
Any help on how just get past this first step and get a simple PHP script running would be greatly appreciated.
Thanks
That's a function of the Visual Studio IDE. There are some IDEs for PHP that do this. I know Zend Studio will do it. You might check Netbeans or Eclipse, they may have this functionality.
Re: PHP newbie
Posted: Mon May 17, 2010 2:10 pm
by flying_circus
NuSphere PhpED also ships with a mini webserver that will allow you to do that. It's what AbraCadaver said above, an IDE feature.
Personally, I took an old machine I had sitting in the closest and loaded Ubuntu on it.
Re: PHP newbie
Posted: Tue May 18, 2010 5:42 am
by HuwD
I already have IIS7 installed from my .NET work. Have installed NetBeans which looks like it will provde the kind of IDE I need but when I try to run a project in it, it just produces the following 404 error.

- 404 error
- Capture.JPG (78.72 KiB) Viewed 2343 times
I really haven't got a clue what I'm doing here. How can I just it up and running?
Re: PHP newbie
Posted: Tue May 18, 2010 4:01 pm
by Benjamin

Moved to Installation and Configuration
Re: PHP newbie
Posted: Sun May 23, 2010 4:08 pm
by markosjal
I saw a wondoze IIS Server image there. Save yourself the trouble download Linux Mint 8.
I was soooo impressed when I started using it for writing and editing PHP . The "out of the box" experience has been excellent. Not to mention it will also run the database on the same server and no PHP on winblows quirks
best of all, its FREE and a no brainer.