Re: - IIS - More info
| From: | Beauford.2002 | Date: | Thu, 20 Mar 2003 01:58:37 +0000 |
| Subject: | Re: - IIS - More info | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140380@lists.php.net to get a copy of this message | ||
After many grueling hours of screwing around with this, it's working. Not
sure of the exact problem - but for those that want to know....I uninstalled
PHP and cleaned the registry of any remnents of PHP and then installed PHP
manually (instead of using the PHP installer). Then I had to tweak the
php.ini file to set the global variables and session data directory and add
a few extensions etc. A few things also had to be changed in the IIS
settings so it would recognize the php extension and a couple of other
things. After that IIS was restarted and voila - these scripts now work. So
it appears the problem was a combination of php and the way it was
installed, and a few settings in IIS that weren't there. I guess the PHP
installer doesn't do these things automatically.
Thanks to all those that replied, as some of your answers eventually lead to
me reinstalling PHP. If I was snarky to anyone, I also apologize as this was
out of frustration.....
B.
----- Original Message -----
From: "Diego Fulgueira" <diegoful@prodigy.net.mx>
To: "PHP Windows" <php-windows@lists.php.net>; "PHP General"
<php-general@lists.php.net>; "Beauford.2002" <beauford.2002@rogers.com>
Sent: Wednesday, March 19, 2003 2:22 PM
Subject: [PHP] - IIS - More info
> Did you checked my last message? Was it helpful?
> PHP under Apache exposes diferent global variables than PHP under IIS. It
> will be impossible for you to correct your errors without changing your
> code. Run phpinfo() to see what variables are available under IIS.
>
> About session variables...
>
> I suggest you use the $_SESSION array instead of $HTTP_SESSION_VARS.
>
> Also, check your session_path (defined in php.ini, which should be under
> /WINNT). session_path should point to a directory where user IUSR_MYHOST
has
> writing permissions. There, you should see a file created for each
session.
> Open this file in notepad and you should find names of session variables
and
> their values. If all this is correct, check what session cookies is
sending
> your browser to the server (Netscape is very suitable for doing this).
> PHPSESSID should be one of them, if not, you are not registering your
> session correctly.
>
> Cheers.
>
>
>
> ----- Original Message -----
> From: "Beauford.2002" <beauford.2002@rogers.com>
> To: <holmes072000@charter.net>; "'PHP General'"
<php-general@lists.php.net>
> Sent: Wednesday, March 19, 2003 12:44 PM
> Subject: Re: [PHP] PHP and IIS - More info
>
>
> > Further note that it is not just this script, but many PHP scripts that
I
> > run on IIS - they all work perfectly on Apache (on Windows and Linux)..
> >
> > ----- Original Message -----
> > From: "John W. Holmes" <holmes072000@charter.net>
> > To: "'Beauford.2002'" <beauford.2002@rogers.com>;
> > "'PHP General'"
> > <php-general@lists.php.net>
> > Sent: Wednesday, March 19, 2003 12:21 PM
> > Subject: RE: [PHP] PHP and IIS - More info
> >
> >
> > > > These are some of the errors I am getting
> > > >
> > > > Notice: Undefined index: login in
> > > > C:\Inetpub\wwwroot\xxxx.xxxx.xxxx\login\checklogin.php on line 74
> > > >
> > > > and 75, and other similar errors.
> > > >
> > > > Line 74 is: $login = $HTTP_SESSION_VARS['login'];
> > > > Line 75 is: $password = $HTTP_SESSION_VARS['password'];
> > > >
> > > > Another one is: echo $HTTP_ENV_VARS["QUERY_STRING"];
> > >
> > > There is no 'login' or 'password' index in the $HTTP_SESSION_VARS
array.
> > > How are you registering these variables? Try using the new method with
> > > $_SERVER.
> > >
> > > ---John W. Holmes...
> > >
> > > PHP Architect - A monthly magazine for PHP Professionals. Get your
copy
> > > today. http://www.phparch.com/
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>