php-windows Digest 3 Sep 2004 12:59:29 -0000 Issue 2381
Topics (messages 24501 through 24510):
Re: Converting a dos console batch file to a php shell script
24501 by: Gryffyn, Trevor
24502 by: Christian Fersch
24506 by: Jim MacDiarmid
24507 by: Frank M. Kromann
24510 by: Jim MacDiarmid
NT username detectable?
24503 by: GHaider.darcor.com
24504 by: Manuel Lemos
24505 by: Christian Fersch
24508 by: Frank M. Kromann
24509 by: Manuel Lemos
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]
----------------------------------------------------------------------
--- Begin Message ---
Silly response, but did you try the "flush()" command?
There's also a setting in the PHP.INI:
output_buffering = Off
Also check the Output Control Functions:
http://us4.php.net/manual/en/ref.outcontrol.php
Hope this helps!
-TG
> -----Original Message-----
> From: Jim MacDiarmid [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 02, 2004 11:31 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Converting a dos console batch file to a
> php shell script
>
>
>
> Hi everyone,
>
> I've been searching for info to help me troubleshoot an issue
> I'm having
> with displaying output to the console during script
> processing, but I'm not
> having much luck. I'm hoping someone can shed some light on
> this or point me
> in right direction.
>
> I have a foreach construct that loops through an associative
> array and calls
> a nested function. Inside the foreach loop I would like to display the
> current array information that is being processed prior to
> passing to the
> nested function call. The problem I'm running into is that
> the output to the
> console window is delayed till after the forloop as
> completed, as if it's
> being buffered then flushed at the end.
>
> Any ideas how I can display information as processing occurs?
>
> Thanks in advance,
>
> Jim
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Jim Macdiarmid wrote:
Any ideas how I can display information as processing occurs?
flush();
greetings, Christian ;)
--- End Message ---
--- Begin Message ---
As a matter of fact, I have tried that. With no success, I might add. I've
also tried the ob_implicit_flush with no success.
Jim
-----Original Message-----
From: Gryffyn, Trevor [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 02, 2004 1:24 PM
To: [EMAIL PROTECTED]
Cc: Jim MacDiarmid
Subject: RE: [PHP-WIN] Converting a dos console batch file to a php shell
script
Silly response, but did you try the "flush()" command?
There's also a setting in the PHP.INI:
output_buffering = Off
Also check the Output Control Functions:
http://us4.php.net/manual/en/ref.outcontrol.php
Hope this helps!
-TG
> -----Original Message-----
> From: Jim MacDiarmid [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 02, 2004 11:31 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Converting a dos console batch file to a php shell
> script
>
>
>
> Hi everyone,
>
> I've been searching for info to help me troubleshoot an issue I'm
> having with displaying output to the console during script processing,
> but I'm not having much luck. I'm hoping someone can shed some light
> on this or point me in right direction.
>
> I have a foreach construct that loops through an associative array and
> calls a nested function. Inside the foreach loop I would like to
> display the current array information that is being processed prior to
> passing to the nested function call. The problem I'm running into is
> that the output to the console window is delayed till after the
> forloop as completed, as if it's being buffered then flushed at the
> end.
>
> Any ideas how I can display information as processing occurs?
>
> Thanks in advance,
>
> Jim
>
> --
> PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
There is another directive too:
; Implicit flush tells PHP to tell the output layer to flush itself
; automatically after every output block. This is equivalent to calling
the
; PHP function flush() after each and every call to print() or echo() and
each
; and every HTML block. Turning this option on has serious performance
; implications and is generally recommended for debugging purposes only.
implicit_flush = Off
When you are using the CGI version this is off by default and the CLI
version sets this to on by default.
- Frank
> Silly response, but did you try the "flush()" command?
>
> There's also a setting in the PHP.INI:
> output_buffering = Off
>
> Also check the Output Control Functions:
> http://us4.php.net/manual/en/ref.outcontrol.php
>
> Hope this helps!
>
> -TG
>
> > -----Original Message-----
> > From: Jim MacDiarmid [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, September 02, 2004 11:31 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] Converting a dos console batch file to a
> > php shell script
> >
> >
> >
> > Hi everyone,
> >
> > I've been searching for info to help me troubleshoot an issue
> > I'm having
> > with displaying output to the console during script
> > processing, but I'm not
> > having much luck. I'm hoping someone can shed some light on
> > this or point me
> > in right direction.
> >
> > I have a foreach construct that loops through an associative
> > array and calls
> > a nested function. Inside the foreach loop I would like to display
the
> > current array information that is being processed prior to
> > passing to the
> > nested function call. The problem I'm running into is that
> > the output to the
> > console window is delayed till after the forloop as
> > completed, as if it's
> > being buffered then flushed at the end.
> >
> > Any ideas how I can display information as processing occurs?
> >
> > Thanks in advance,
> >
> > Jim
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Ok my bad.. :) I was not aware that there were two different "types" of
PHP.EXE executables to use. Once I started using the PHP.exe in the \php\cli
folder it started working as I expected it to.
Thank you and to everyone for your help on this,
Jim
-----Original Message-----
From: Frank M. Kromann [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 02, 2004 9:10 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Converting a dos console batch file to aphp shell
script
There is another directive too:
; Implicit flush tells PHP to tell the output layer to flush itself ;
automatically after every output block. This is equivalent to calling the ;
PHP function flush() after each and every call to print() or echo() and each
; and every HTML block. Turning this option on has serious performance ;
implications and is generally recommended for debugging purposes only.
implicit_flush = Off
When you are using the CGI version this is off by default and the CLI
version sets this to on by default.
- Frank
> Silly response, but did you try the "flush()" command?
>
> There's also a setting in the PHP.INI:
> output_buffering = Off
>
> Also check the Output Control Functions:
> http://us4.php.net/manual/en/ref.outcontrol.php
>
> Hope this helps!
>
> -TG
>
> > -----Original Message-----
> > From: Jim MacDiarmid [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, September 02, 2004 11:31 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] Converting a dos console batch file to a php
> > shell script
> >
> >
> >
> > Hi everyone,
> >
> > I've been searching for info to help me troubleshoot an issue I'm
> > having with displaying output to the console during script
> > processing, but I'm not having much luck. I'm hoping someone can
> > shed some light on this or point me in right direction.
> >
> > I have a foreach construct that loops through an associative array
> > and calls a nested function. Inside the foreach loop I would like to
> > display
the
> > current array information that is being processed prior to passing
> > to the nested function call. The problem I'm running into is that
> > the output to the console window is delayed till after the forloop
> > as completed, as if it's being buffered then flushed at the end.
> >
> > Any ideas how I can display information as processing occurs?
> >
> > Thanks in advance,
> >
> > Jim
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/) To unsubscribe,
> > visit: http://www.php.net/unsub.php
> >
> >
>
> --
> PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
>
--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
In the html headers, the server sees the clients OS, user agent, IP
address etc. Is there a way on a local LAN a server might be able to know
the username of the client that sends a request?
I've checked all $_SERVER variables, PHP_AUTH_USER etc require the auth
box to be displayed. I'm thinking it might be possible to know which user
is logged in when the request is made, possibly by using COM or even
(gasp) .NET, without having to ask the user his username.
Any ideas if this can be accomplished at all?
Right now we have Firefox clients and Apache with PHP in an Active
Directory domain with NT4 compatibility, but we can move to IE6 with
IIS+PHP if that will work.
--- End Message ---
--- Begin Message ---
Hello,
On 09/02/2004 04:48 PM, [EMAIL PROTECTED] wrote:
In the html headers, the server sees the clients OS, user agent, IP
address etc. Is there a way on a local LAN a server might be able to know
the username of the client that sends a request?
I've checked all $_SERVER variables, PHP_AUTH_USER etc require the auth
box to be displayed. I'm thinking it might be possible to know which user
is logged in when the request is made, possibly by using COM or even
(gasp) .NET, without having to ask the user his username.
Any ideas if this can be accomplished at all?
Right now we have Firefox clients and Apache with PHP in an Active
Directory domain with NT4 compatibility, but we can move to IE6 with
IIS+PHP if that will work.
If the Web server is configured to request NTLM authentication, your
script may access the authenticated user via GetEnv("LOGON_USER") .
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] wrote:
In the html headers, the server sees the clients OS, user agent, IP
address etc. Is there a way on a local LAN a server might be able to know
the username of the client that sends a request?
I've checked all $_SERVER variables, PHP_AUTH_USER etc require the auth
box to be displayed. I'm thinking it might be possible to know which user
is logged in when the request is made, possibly by using COM or even
(gasp) .NET, without having to ask the user his username.
Any ideas if this can be accomplished at all?
Right now we have Firefox clients and Apache with PHP in an Active
Directory domain with NT4 compatibility, but we can move to IE6 with
IIS+PHP if that will work.
This isn't possible with php on its own (would be deep impact into your
privacy if it could, wouldn't it?). So you've got 2 choices:
switch to IE and use a security hole :>
Or just stay with the better browser and write a little extension.
The easiest way should be a little extensions, that checks if the url of
your site is opened and if it is, fills a hidden field with the
username. Or even easier: an extension, that sets a cookie for your site
with the username as its content.
extensions aren't that hard to write, for they are just javascript.
greetings, Christian
--- End Message ---
--- Begin Message ---
With IIS you can disable basic authentication for your files. This will
cause the server to either prompt for a userid/password or to use the info
sent by the client (IE will send this info if the user is authenticated on
the domain).
- Frank
> In the html headers, the server sees the clients OS, user agent, IP
> address etc. Is there a way on a local LAN a server might be able to
know
> the username of the client that sends a request?
>
> I've checked all $_SERVER variables, PHP_AUTH_USER etc require the auth
> box to be displayed. I'm thinking it might be possible to know which
user
> is logged in when the request is made, possibly by using COM or even
> (gasp) .NET, without having to ask the user his username.
>
> Any ideas if this can be accomplished at all?
>
> Right now we have Firefox clients and Apache with PHP in an Active
> Directory domain with NT4 compatibility, but we can move to IE6 with
> IIS+PHP if that will work.
>
--- End Message ---
--- Begin Message ---
Hello,
On 09/02/2004 08:28 PM, Christian Fersch wrote:
In the html headers, the server sees the clients OS, user agent, IP
address etc. Is there a way on a local LAN a server might be able to
know the username of the client that sends a request?
I've checked all $_SERVER variables, PHP_AUTH_USER etc require the
auth box to be displayed. I'm thinking it might be possible to know
which user is logged in when the request is made, possibly by using
COM or even (gasp) .NET, without having to ask the user his username.
Any ideas if this can be accomplished at all?
Right now we have Firefox clients and Apache with PHP in an Active
Directory domain with NT4 compatibility, but we can move to IE6 with
IIS+PHP if that will work.
This isn't possible with php on its own (would be deep impact into your
privacy if it could, wouldn't it?). So you've got 2 choices:
switch to IE and use a security hole :>
I think you are making a big confusion.
Nothing stops PHP from requiring NTLM authentication. PHP does not
provide built-in support to handle NTLM authentication but since he
users Apache he has access to the retrieve the request headers and set
the response headers to handle NTLM authentication.
AFAIK, current versions of Mozilla based browsers support NTLM
authentication when used under Windows, so there is no need to use IE at
all.
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--- End Message ---