I don't want to host a site from my laptop, but I believe it makes little difference, in that I still need to have a web server running on it to get PHP to work.
So I have XP Pro and fairly easily got IIS up and running. I downloaded the PHP 4.4.4 zip package and tried to follow all of the instructions. I've added the php directory to the PATH variable, edited the recommended php.ini file with some of the variables required, and gone to the web server and added a directory to the php.exe file to handle the .php extension.
I think I've done a few other things as well. I am unsure as to whether I want to use the CGI option or the ASAPI one it goes on about, but I've been following the CGI instructions.
I go to a web browser and get it to point to "http://localhost" and it opens up the default windows ASP file happily. I added a sam.php file to the directory with a simple echo statement and it fails giving me this error:
You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed.
Seems fairly self explanatory so I've tried to fix it on my own, and then googled the error and found loads of solutions which don't work.
I have gone into IIS and found my Web Server element and found the properties tab and gone into Home Directory and told it to allow Scripts and Executables, though I don't see why this would work, as I think the problem is not with the web server's home directory but the PHP directory. Still, it was not only a suggested solution to getting this error, but also had replies thanking it as it had worked.
I have also used windows explorer to change the properties of the php folder to get it to allow scripts and executables, even though nobody said to do that.
I still get the error despite a reboot after every new attempts. Someone else must have had this happen before, though I haven't managed to find a query here anywhere.
Can anyone enlighten me?