RE: [PHP-WIN] Win nt logon user how to ?
| From: | Mikey | Date: | Fri, 11 Oct 2002 18:27:53 +0000 |
| Subject: | RE: [PHP-WIN] Win nt logon user how to ? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-16343@lists.php.net to get a copy of this message | ||
How about NT_AUTH_USER?
regards,
Mikey
"If you give someone a program, you will frustrate them for a day. If you
teach them how to program, you will frustrate them for a lifetime."
> -----Original Message-----
> From: Daniel Masson [mailto:dmasson@imagine.com.co]
> Sent: 11 October 2002 14:56
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] Win nt logon user how to ?
>
>
>
> Hey everyone, id like to know how to get the logon user in my NT domain,
> i know that this can be done in ASP:
> Request.Servervariables("LOGON_USER"), and gets the logged user of the
> client machine, i need to do that with PHP, ... im affraid this is not
> possible because, runing phpinfo() ... this variable is not on
> enviroment list.
>
> is it possible what i want to do ??
>
> Thanks every1 !!
>
> Regards
> Daniel.
>
>
>
> -----Mensaje original-----
> De: Uttam [mailto:uttam@lml.co.in]
> Enviado el: lunes, 07 de octubre de 2002 9:03
> Para: 'R Strang'
> CC: php-windows@lists.php.net
> Asunto: [PHP-WIN] RE: Sending data to a script from a form
>
>
> use $_GET['user'] and $_GET['address']...
>
> output.php
>
> <html>
> <head>
> <title></title>
> </head>
> <body>
> <?php
> echo "welcome <b>$_GET['user']</b><p>\n\n";
> echo "your address
> is:<p>\n\n<b>$_GET['address']</b>";
> ?>
> </body>
> </html>
>
>
> regds,
> -----Original Message-----
> From: R Strang [mailto:r.strang@ntlworld.com]
> Sent: Monday, October 07, 2002 04:12
> To: php-windows@lists.php.net
> Subject: Sending data to a script from a form
>
>
> hi im having problems with running PHP4 and MySQL on Windows 98 with PWS
>
> im using this simple script to input an name and dysplay it on another
> page it was taken from a book example but i get an error
>
> PHP Notice: Undefined variable: user in c:\Inetpub\wwwroot\output.php on
> line 7 PHP Notice:Undefined variable: address in
> c:\Inetpub\wwwroot\output.php on line 8
>
>
> input.php
>
> <html>
> <head>
> <title></title>
> </head>
> <body>
> <form action="output.php" method="get">
> <input type="text" name="user">
> <br>
> <textarea name="address rows="5" cols="40">
> </textarea>
> <br>
> <input type="submit" value="hit it!">
> </form>
> </body>
> </html>
>
>
> output.php
>
> <html>
> <head>
> <title></title>
> </head>
> <body>
> <?php
> print "welcome <b>$user</b><p>\n\n";
> print "your address is:<p>\n\n<b>$address</b>";
> ?>
> </body>
> </html>
>
>
> --
> 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
>
>
>
>