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
PHP newbie
Moderator: General Moderators
Re: PHP newbie
so... you mean that you dont't have to have Windows or the .Net framework installed and just "hit run" to run an application?HuwD wrote: In .NET you just hit run and it runs the 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
- AbraCadaver
- DevNet Master
- Posts: 2572
- Joined: Mon Feb 24, 2003 10:12 am
- Location: The Republic of Texas
- Contact:
Re: PHP newbie
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.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
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
- flying_circus
- Forum Regular
- Posts: 732
- Joined: Wed Mar 05, 2008 10:23 pm
- Location: Sunriver, OR
Re: PHP newbie
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.
Personally, I took an old machine I had sitting in the closest and loaded Ubuntu on it.
Re: PHP newbie
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.
I really haven't got a clue what I'm doing here. How can I just it up and running?
I really haven't got a clue what I'm doing here. How can I just it up and running?
Re: PHP newbie
Re: PHP newbie
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.
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.