Click to See Complete Forum and Search --> : PHP 4.3.1 and Windows 2003 Server IIS 6 isn't working...


dougdrury
05-23-2003, 01:36 AM
I installed a fresh copy of Windows Server 2003. I configured IIS to serve pages. It works fine with HTML.
I then installed the latest quick installation from php.net. I just did the basic Windows installer file. No manual stuff. I keep getting "Page cannot be found" when I run http://localhost/test.php. http://localhost/test.html works fine. I have setup the Home Directory Scripts and Excecutables and also made sure that the c:\php\php.exe is mapped for .php files. What am I missing? Is there an issue with Win 2003 IIS 6.0 and PHP 4.0?

aardwolf204
05-29-2003, 05:36 PM
You must set php as a web service extension. search the board, you'll find a legnthly discussion about it. I've gotten php to work correctly with server 2003/iis6, except it only works in .php files, i cant use <?php echo 'foobar'; ?> in .html files, and even then the .php files wont do most php code correctly. for some reason php is having problems passing varibles. I made a simple script to test form method post and get to $DOCUMENT_SELF with if statements setup to echo results upon clicking submit, but clicking submit just refreshes and page and the flag doesnt go up. it seems like varibles arent being sent. i even tried going to test.php?foo=1 and it still didnt work.

now im just totally confused. ive been searching for the answer to my problem, but im not even sure what search criteria to use. google doesnt seem to like "wtf is wrong with iis6 +php" :rolleyes:

alan92rttt
06-03-2003, 11:03 PM
is register_globals set to "on" in the php.ini ?

DeltaRho2K
06-04-2003, 01:23 AM
The passing variables thing is definitely due to the register globals being disabled... I just spent 4 hours hunting and pecking to find that one...

You can either turn it on in the php.ini file, or use the $_GET or $HTTP_GET_VARS to get the variables...

aardwolf204
06-06-2003, 02:30 AM
Thanks a million, that solved everything, although it looks like it may be time to rethink my coding security ethics.

Thanks :)

nathansym
07-27-2003, 02:15 AM
Can someone point me to the topic discussing how to run php as a web service?