PHP newbie

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
HuwD
Forum Newbie
Posts: 2
Joined: Mon May 17, 2010 11:01 am

PHP newbie

Post 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
mikosiko
Forum Regular
Posts: 757
Joined: Wed Jan 13, 2010 7:22 pm

Re: PHP newbie

Post 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? :wink:

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
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: PHP newbie

Post 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.
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.
User avatar
flying_circus
Forum Regular
Posts: 732
Joined: Wed Mar 05, 2008 10:23 pm
Location: Sunriver, OR

Re: PHP newbie

Post 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.
HuwD
Forum Newbie
Posts: 2
Joined: Mon May 17, 2010 11:01 am

Re: PHP newbie

Post 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
404 error
Capture.JPG (78.72 KiB) Viewed 2342 times
I really haven't got a clue what I'm doing here. How can I just it up and running?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: PHP newbie

Post by Benjamin »

:arrow: Moved to Installation and Configuration
markosjal
Forum Commoner
Posts: 63
Joined: Fri Apr 16, 2010 10:15 pm

Re: PHP newbie

Post 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.
Post Reply