On Wed, 2004-07-28 at 06:54, Michael Naya wrote: > Dear support, > > I'm a teacher from 1 of the International Schools in the Philippines and I need your > help regarding running php. I've read some threads stating that they didn't get any > response from you guys, at least I tried. So here's the situation: > > OS: Windows 98 SE > PWS > > I installed PWS and tested it. It's working just fine. When I click the > http://mike-naya, I get the default.asp(as my personal page) displayed in IE. > > I extracted php-4.3.8-Win32.zip to drive c:\ and renamed the folder to php(c:\php). > I installed the php-4.3.8-installer.exe and did the instructions found in > c:\php\install.txt. I tried to run c:\>php\php.exe -i and got the postinfo.html > data, so that means my PHP installation is working also. > > However, when I run my index.php(with this content only <?php phpinfo();?> ) using > IE-http://localhost/index.php, > I got a bad error request. > > I tried to run postinfo.htm using http://localhost/postinfo.html & it's working... > > Please don't redirect me to "read your installation manual" because I've done it for > a couple of times & I still wasn't able to make my PHP run... > > Always, > Mike >
Hi Mike, Firstly, we are all just users here. Just like yourself, but we've stayed subscribed to try to help others. Formal "support" is what you pay for. My usual disclaimer here that I do not use PHP under MS Windows (but linux) and have never used PWS, but maybe I can give some pointers that may help. Just to prove that you have the index.php file in the right place, change its name to index.html and point your browser at http://localhost/index.html You should see the "<?php phpinfo(); ?>" source literally as I typed it there. If you do not, then the file is in the wrong place and you need to move it to the document root of your PWS webserver. If you do see it, then the problem is in getting PWS to parse it to c:\php\php.exe correctly. I do not know what you mean by postinfo.html or postinfo.htm. I've downloaded the php-4.3.8-Win32.zip file and cannot find this in install.txt. Please explain. The install.txt file shows a lot of changes to the registry needed, I assume that you have checked these thoroughly. I believe that there are several php installers for MS Windows around, according to what I've read, some seem to work better than others. A Google search reveals that the site http://www.updatexp.com/internet-explorer-error-messages.html indicates the MSIE 400 Bad File Request is usually bad syntax in typing the URI into the browser. I wonder if localhost is set on your computer. You say http://mike-naya gives the default.asp page, does http://localhost do the same? If not you will need to call the pages by mike-naya rather than localhost or set localhost by a line such as: 127.0.0.1 localhost in your hosts file (from memory c:\windows\system32\drivers\etc). Otherwise there are specific lists for PHP under MS Windows where there are probably more people who use it than here. Look for these lists at http://lists.php.net Hope this helps Chris