Running PHP locally
Posted: Mon Mar 02, 2009 2:29 pm
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.
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.