php-windows Digest 10 Apr 2001 08:11:45 -0000 Issue 536

Topics (messages 6582 through 6595):

Help PHP inetinfo
        6582 by: aaron
        6586 by: Flint Doungchak
        6587 by: Asendorf, John

Session problems
        6583 by: Mark Collins
        6588 by: Asendorf, John
        6589 by: Asendorf, John
        6590 by: Olivier Hubert

MSSQL Connect problems
        6584 by: Thomas W. Badera

A **NEW** "X-powered" dilemma... sessions using memory instead of files
        6585 by: Asendorf, John
        6591 by: John Lim
        6593 by: Asendorf, John
        6594 by: Daniel Beulshausen

Re: Zend IDE/Debugger Install missing files?
        6592 by: John Lim

windows username
        6595 by: 0000051

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


I'm running php 4.0 on NT IIS 4.0 and using the ISAPI php filter rather than
the CGI installation.  When I execute a php page that queries an Access
database about 5 times, my CPU utilitization goes up to 100% and stays there
till I kill the inetinfo process.  Is this a bug in the ISAPI installation?
My queries are very minimal and run fine for the first few times.

Thanks,
Aaron






Aaron,

>From what I understand, the ISAPI filter still isn't all that great. I have
had very poor experience with it and still use the CGI version with no
problems.

-Flint

-----Original Message-----
From: aaron [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 10:27 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Help PHP inetinfo


I'm running php 4.0 on NT IIS 4.0 and using the ISAPI php filter rather than
the CGI installation.  When I execute a php page that queries an Access
database about 5 times, my CPU utilitization goes up to 100% and stays there
till I kill the inetinfo process.  Is this a bug in the ISAPI installation?
My queries are very minimal and run fine for the first few times.

Thanks,
Aaron



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Ditto.  I had nothing but problems trying to use the ISAPI implementation
with Access.   Move to CGI.

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Aliquando et insanire iucundum est


> -----Original Message-----
> From: Flint Doungchak [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 09, 2001 1:35 PM
> To: '[EMAIL PROTECTED]'
> Cc: '[EMAIL PROTECTED]'
> Subject: RE: [PHP-WIN] Help PHP inetinfo
> 
> 
> Aaron,
> 
> From what I understand, the ISAPI filter still isn't all that 
> great. I have
> had very poor experience with it and still use the CGI version with no
> problems.
> 
> -Flint
> 
> -----Original Message-----
> From: aaron [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 09, 2001 10:27 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Help PHP inetinfo
> 
> 
> I'm running php 4.0 on NT IIS 4.0 and using the ISAPI php 
> filter rather than
> the CGI installation.  When I execute a php page that queries 
> an Access
> database about 5 times, my CPU utilitization goes up to 100% 
> and stays there
> till I kill the inetinfo process.  Is this a bug in the ISAPI 
> installation?
> My queries are very minimal and run fine for the first few times.
> 
> Thanks,
> Aaron
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> 




Hi there, I am trying to get my head around Sessions but not getting very
far. I can't seem to work out exactly how you keep track of the variables.
If you register a variable at the start of the page, will it then track this
variable and take it from page to page by its self, or do you have to do
something in the code to tell the session its changed, like register it
again?

I have got to grips with most things so far, but sessions are fighting back,
are there any good tutorials on the web you can recommend? I have already
used web monkey for most things, but their session section was a bit crappy.

Thanks






Dear Mark,

You must have the line 

session_start ();

at the beginning of the pages that are part of the session.  This is the
function which gets the session id.  You can also use session_start to BEGIN
the session.  You must then register any variables you want to be held by
the session.  You must register those variables each time you change them
too.

You should probably change the temp directory in which the session files are
held too (create a nice new little directory just for php session files and
register that directory in the php.ini file).  I had problems before I did
this.

Hope this gets you started.

John

---------------------
Founder of
The 'What Kind of Idiot Uses PHP with IIS with Oracle on NT?' Consortium

Members: John Asendorf, Thomas Kryger, Florian Clever, Ron Woods, Bod

John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Aliquando et insanire iucundum est


> -----Original Message-----
> From: Mark Collins [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 09, 2001 1:31 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Session problems
> 
> 
> Hi there, I am trying to get my head around Sessions but not 
> getting very
> far. I can't seem to work out exactly how you keep track of 
> the variables.
> If you register a variable at the start of the page, will it 
> then track this
> variable and take it from page to page by its self, or do you 
> have to do
> something in the code to tell the session its changed, like 
> register it
> again?
> 
> I have got to grips with most things so far, but sessions are 
> fighting back,
> are there any good tutorials on the web you can recommend? I 
> have already
> used web monkey for most things, but their session section 
> was a bit crappy.
> 
> Thanks
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> 




[> This is the
> function which gets the session id. ]

Ooooops...  I meant "This is the function which gets the **variables** from
the session file."

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Aliquando et insanire iucundum est


> -----Original Message-----
> From: Asendorf, John [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 09, 2001 1:37 PM
> To: Mark Collins; Php-Windows (E-mail)
> Subject: RE: [PHP-WIN] Session problems
> 
> 
> Dear Mark,
> 
> You must have the line 
> 
> session_start ();
> 
> at the beginning of the pages that are part of the session.  
> This is the
> function which gets the session id.  You can also use 
> session_start to BEGIN
> the session.  You must then register any variables you want 
> to be held by
> the session.  You must register those variables each time you 
> change them
> too.
> 
> You should probably change the temp directory in which the 
> session files are
> held too (create a nice new little directory just for php 
> session files and
> register that directory in the php.ini file).  I had problems 
> before I did
> this.
> 
> Hope this gets you started.
> 
> John
> 
> ---------------------
> Founder of
> The 'What Kind of Idiot Uses PHP with IIS with Oracle on NT?' 
> Consortium
> 
> Members: John Asendorf, Thomas Kryger, Florian Clever, Ron Woods, Bod
> 
> John Asendorf - [EMAIL PROTECTED]
> Web Applications Developer
> http://www.lcounty.com - NEW FEATURES ADDED DAILY!
> Licking County, Ohio, USA
> 740-349-3631
> Aliquando et insanire iucundum est
> 
> 
> > -----Original Message-----
> > From: Mark Collins [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, April 09, 2001 1:31 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] Session problems
> > 
> > 
> > Hi there, I am trying to get my head around Sessions but not 
> > getting very
> > far. I can't seem to work out exactly how you keep track of 
> > the variables.
> > If you register a variable at the start of the page, will it 
> > then track this
> > variable and take it from page to page by its self, or do you 
> > have to do
> > something in the code to tell the session its changed, like 
> > register it
> > again?
> > 
> > I have got to grips with most things so far, but sessions are 
> > fighting back,
> > are there any good tutorials on the web you can recommend? I 
> > have already
> > used web monkey for most things, but their session section 
> > was a bit crappy.
> > 
> > Thanks
> > 
> > 
> > 
> > -- 
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: 
> > [EMAIL PROTECTED]
> > 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> 




Hi,

        Ok, first of all, the function session_start () should be run on each page
that uses session variables. It is necessary to access, create or modify
session variables.

        To register variables, use session_register (). Be aware that the function
uses a string argument. So to register a variable named UserName, use
session_register ("UserName"). Also, use the function session_is_registered
() to find out if the variable is already registered in the session
(otherwise you'll get the "Session variable already registered" warning).
Again, this function uses string argument, so call it like this:
session_is_registered ("UserName").

        Once you have registered your variable, you can access it through
$HTTP_SESSION_VARS or, if you have "register_globals" set to 1 in your
Php.ini, directly through the variable name. Remember that you must have
first executed session_start () in order to access a session variable.

Here's a quick example:

<?
...
session_start ();
if (!session_is_registered ("UserName"))
        session_register ("UserName");

$HTTP_SESSION_VARS ["UserName"] = whatever you want here;
...
?>

        I've learned sessions solely with the php.net and I must say it was a pain
in the a*s. I haven't found a good tutorial on PHP sessions yet. I hope
that with this you can have a good start!

        Oh, one last thing, John Asendorf's idea of changing the session directory
is a must. Most weird error messages from session come from a wrong session
dir :-).

Olivier

At 18:31 2001-04-09 +0100, Mark Collins wrote:
>Hi there, I am trying to get my head around Sessions but not getting very
>far. I can't seem to work out exactly how you keep track of the variables.
>If you register a variable at the start of the page, will it then track this
>variable and take it from page to page by its self, or do you have to do
>something in the code to tell the session its changed, like register it
>again?
>
>I have got to grips with most things so far, but sessions are fighting back,
>are there any good tutorials on the web you can recommend? I have already
>used web monkey for most things, but their session section was a bit crappy.
>
>Thanks
>
>
>
>-- 
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

Olivier Hubert
Technicien informatique
Support technique CIEC - Constructo
(514) 856-6646
[EMAIL PROTECTED]




Hello -

I'm trying to debug some scripts locally before I send them to my server.
When the scripts are on the server they have no problem connecting to the
MSSQL sever, but when run from my machine I can't get it to establish a
connection.  Any thoughts?

--TWB





I was trying to run sessions using memory instead of files. So I changed the
session.save.handler in php.ini from "files" to "mm"

Now I'm getting the X-Powered line at the top of my pages (all pages to be
exact, even the ones not using sessions).

NT4    IIS4   PHP 4.0.4    CGI

Anyone know how to get rid of it while using mm for sessions?

Has anyone noticed that the mail archives on phpbuilder have become almost
useless?

---------------------
Founder of
The 'What Kind of Idiot Uses PHP with IIS with Oracle on NT?' Consortium

Members: John Asendorf, Thomas Kryger, Florian Clever, Ron Woods, Bod

John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Aliquando et insanire iucundum est





Hi, I believe the mm session handler is only available on Unix.

John


"Asendorf, John" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I was trying to run sessions using memory instead of files. So I changed
the
> session.save.handler in php.ini from "files" to "mm"
>
> Now I'm getting the X-Powered line at the top of my pages (all pages to be
> exact, even the ones not using sessions).
>
> NT4    IIS4   PHP 4.0.4    CGI
>
> Anyone know how to get rid of it while using mm for sessions?
>
> Has anyone noticed that the mail archives on phpbuilder have become almost
> useless?
>
> ---------------------
> Founder of
> The 'What Kind of Idiot Uses PHP with IIS with Oracle on NT?' Consortium
>
> Members: John Asendorf, Thomas Kryger, Florian Clever, Ron Woods, Bod
>
> John Asendorf - [EMAIL PROTECTED]
> Web Applications Developer
> http://www.lcounty.com - NEW FEATURES ADDED DAILY!
> Licking County, Ohio, USA
> 740-349-3631
> Aliquando et insanire iucundum est
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






:(

I wondered why the server started smoking after I set that handler...

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Aliquando et insanire iucundum est


> -----Original Message-----
> From: John Lim [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 09, 2001 2:38 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] A **NEW** "X-powered" dilemma... sessions using
> memory instead of files
> 
> 
> Hi, I believe the mm session handler is only available on Unix.
> 
> John
> 
> 
> "Asendorf, John" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I was trying to run sessions using memory instead of files. 
> So I changed
> the
> > session.save.handler in php.ini from "files" to "mm"
> >
> > Now I'm getting the X-Powered line at the top of my pages 
> (all pages to be
> > exact, even the ones not using sessions).
> >
> > NT4    IIS4   PHP 4.0.4    CGI
> >
> > Anyone know how to get rid of it while using mm for sessions?
> >
> > Has anyone noticed that the mail archives on phpbuilder 
> have become almost
> > useless?
> >
> > ---------------------
> > Founder of
> > The 'What Kind of Idiot Uses PHP with IIS with Oracle on 
> NT?' Consortium
> >
> > Members: John Asendorf, Thomas Kryger, Florian Clever, Ron 
> Woods, Bod
> >
> > John Asendorf - [EMAIL PROTECTED]
> > Web Applications Developer
> > http://www.lcounty.com - NEW FEATURES ADDED DAILY!
> > Licking County, Ohio, USA
> > 740-349-3631
> > Aliquando et insanire iucundum est
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> >
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> 




At 02:38 10.04.2001 +0800, John Lim wrote:
>Hi, I believe the mm session handler is only available on Unix.

the mm option is for memory mapped files AFAIR, so far they are only 
available onder *nix.
win32 supports memory mapped files as well (in a different manner).

daniel

>John
>
>
>"Asendorf, John" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I was trying to run sessions using memory instead of files. So I changed
>the
> > session.save.handler in php.ini from "files" to "mm"
> >
> > Now I'm getting the X-Powered line at the top of my pages (all pages to be
> > exact, even the ones not using sessions).
> >
> > NT4    IIS4   PHP 4.0.4    CGI
> >
> > Anyone know how to get rid of it while using mm for sessions?
> >
> > Has anyone noticed that the mail archives on phpbuilder have become almost
> > useless?
> >
> > ---------------------
> > Founder of
> > The 'What Kind of Idiot Uses PHP with IIS with Oracle on NT?' Consortium
> >
> > Members: John Asendorf, Thomas Kryger, Florian Clever, Ron Woods, Bod
> >
> > John Asendorf - [EMAIL PROTECTED]
> > Web Applications Developer
> > http://www.lcounty.com - NEW FEATURES ADDED DAILY!
> > Licking County, Ohio, USA
> > 740-349-3631
> > Aliquando et insanire iucundum est
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


/*--
daniel beulshausen - [EMAIL PROTECTED]
using php on windows? http://www.php4win.de





It's not needed. Ignore it. I have Zend Debugger working in W2K.

Regards, John

"Adam Robertson" <[EMAIL PROTECTED]> wrote in message
9ak79o$u0v$[EMAIL PROTECTED]">news:9ak79o$u0v$[EMAIL PROTECTED]...
> Hi all,
>
> I'm trying to install the new Zend IDE and Debug server on my win2k /
Apache
> / MySQL dev system.
> Following the install PDF I get as far as step 2.3 but I don't appear to
> have the install_license.reg file anywhere.
> Does anyone know where to get this file?
>
> Cheers,
> Adam
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






Hi all
Is there a way that we can change windows logon username and password (or just a 
password)


Reply via email to