Running PHP locally

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
mitso6989
Forum Newbie
Posts: 1
Joined: Mon Mar 02, 2009 2:19 pm

Running PHP locally

Post by mitso6989 »

I'm creating a stand alone application that I do not want run in a browser as it would require far too much time setting up IIS or Apache on each machine (image won't work as each machine is unique). I installed PHP 5.2.9 windows installer, and during setup there was the option to associate PHP files so they would run automatically with PHP. I figured this would work as I have done similarly with Python. When I do it gives me about 8 errors that I'm missing dll files. I checked and most are there in the place it says it can't find them. The others I downloaded and it liked some and didn't like others.
I can't even get a handle on this to tell if it should work or not. the test code is simple enough.

$myFile = "testFile.txt";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = "Bobby Bopper\n";
fwrite($fh, $stringData);
$stringData = "Tracy Tanner\n";
fwrite($fh, $stringData);
fclose($fh);

Any direction on this would be appreciated.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: Running PHP locally

Post by josh »

Checkout wamp / xamp
DevGiven
Forum Newbie
Posts: 7
Joined: Wed Mar 04, 2009 5:41 pm

Re: Running PHP locally

Post by DevGiven »

Install an editor with a debugger and make the application there. Or you can user phptriad which is very simple to install. It comes with php,mysql and apache. It's easy to install, just google it.
Hopes this helps.
Post Reply