PHP4 (sapi php4isapi.dll or php.exe) with IIS5.0

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ntjang
Forum Newbie
Posts: 2
Joined: Wed Jul 31, 2002 3:15 am
Contact:

PHP4 (sapi php4isapi.dll or php.exe) with IIS5.0

Post by ntjang »

:cry:
Hello everybody!
We run PHP4 with IIS5.0. If we use php.exe, set_cookie run not properly. If we use php4isapi.dll, IIS was usually damaged.
Who can I show me the way to solve this problem.
Thank you very much.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

setcookie() should work whether you use the CGI or ISAPI version of PHP. By not work properly, what do you mean?

Mac
ntjang
Forum Newbie
Posts: 2
Joined: Wed Jul 31, 2002 3:15 am
Contact:

Setcookie

Post by ntjang »

twigletmac wrote:setcookie() should work whether you use the CGI or ISAPI version of PHP. By not work properly, what do you mean?

Mac
I want to say about function "setcookie" of PHP. If I use this function with CGI, it work not properly.
Example:
I type the follow code in page Login.php:
$username="ntjang298";
setcookie(
"COOKIE_USERNAME", //string name
"$username", //string value
$expire, //int expire
"", //string path
"", //string domain
0 //int secure
);
In another page as index.php:
echo $COOKIE_USERNAME;
Nothing display.
Can you help me?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Have you read this:
http://www.devnetwork.net/forums/viewtopic.php?t=511

Have you tried:

Code: Select all

echo $_COOKIEї'COOKIE_USERNAME'];
Mac
Post Reply