[PHPLIB] NT/IIS: PHPLIB can't set cookies, $HTTP_POST_VARS empty From: Mike Green (Mike.Green <email protected>)
Date: 02/14/00

As the subject line states, I'm having difficulty with making PHPLIB
work in an NT/IIS environment and would very much appreciate your ideas.

I have a site which uses PHPLIB heavily and which works fine with
*nix/Apache/MySQL that I am porting to NT/IIS/MS SQL Server (via ODBC)
at the customer's request. I've gotten past a number of hurdles like
talking to the database, pathing correctly to the PHPLIB files, setting
the document root correctly in php3.ini.

But PHPLIB apparently can't set cookies, $HTTP_POST_VARS is empty, and
(as a result, I strongly suspect) my site quite loses track of where it
is going, returning to the wrong pages in a confused sort of way ;-(

I've checked and re-checked track_vars. It is set to "On" in php3.ini
and shows as 1 in phpinfo(). $HTTP_COOKIE_VARS shows a cookie set by
IIS (called "site_server", or something to that effect) only.
$HTTP_GET_VARS shows the PHPLIB session ID.

If I use POST for a form I get nothing (from $HTTP_POST_VARS) on the
next page. If I use GET the information is all there (in
$HTTP_GET_VARS).

The test program (index.php3 that has been provided with the
distribution) successfully increments the counter (and the database
shows session information being written). Since cookies aren't working
the system is using the query string fall back mode. The browsers (I've
check with two different ones and on two different machines) have
cookies enabled.

I've also checked $PHP_SELF. It seems to be returning the correct
information on the pages running in the document root. It occurs to me
that perhaps when it is used by the PHPLIB routines it is not doing so.
But I've not been able to figure out how to see if that were so.

TIA for any leads from anyone!!!

Cheers!

Mike Green

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.