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.
Running PHP locally
Moderator: General Moderators
Re: Running PHP locally
Checkout wamp / xamp
Re: Running PHP locally
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.
Hopes this helps.