php-windows Digest 29 Mar 2006 14:07:59 -0000 Issue 2926
Topics (messages 26800 through 26803):
Re: Getting windows username into php/mysql
26800 by: Mike Milano
Re: Problems with instalation on Apache
26801 by: El Bekko
26803 by: Alejandro C. Garrammone
Zend Optimizer Problem
26802 by: Mike Milano
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 ---
Alex Blundell wrote:
HI, I have been searching the internet for days trying to find a way of
getting the windows username (%username%) of the current logged on user and
submitting it, along side some other information (entered into the form by
the user), to a MysQl database. This will enable me to know who has
submitted the form on my intranet.
I have quite a bit of php/mysql knowledge, and i know the windows variable
is %username% (easy i know) i just dont know how to get the variable into an
array so i can post it to mysql db
Any help would be great as im all out of place to look....
Thanks in advance
It was a long time ago when I was working with this, but I believe I had
to go into IIS -> default website -> properties -> directory security
check 'Integrated Windows Authentication'
I don't recall if Anonomous access had to be turned off or not.
--- End Message ---
--- Begin Message ---
Alejandro C. Garrammone wrote:
Hi! I'm installing php 5.0.1 on Apache 2.0.55, I think it's works fine but when I load an
html form they said "Notice: Undefined variable: submit in C:\Archivos de
programa\Apache Group\Apache2\htdocs\as_insercion.php on line 10" and the other
problem it not connect to the MySQL DB.
Before this I've used MySQL 3.23, PHP 4 and Apache 1.XX.
Ahh....Im using this to work with an Intranet. My IP is 10.21.247.175
Someone could help me to configure this?.
Thxs in advance,
Alex
My best guess is you're trying to use register_globals... which you
shoudn't.
And for the DB... the MySQL extension is not loaded by standard in PHP5.
SO you have to set that in php.ini ;)
--- End Message ---
--- Begin Message ---
Thxs to all. I register_globals and load the extension and it's working now.
Thx again!
Alex
----- Original Message -----
From: "El Bekko" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, March 28, 2006 3:27 PM
Subject: [PHP-WIN] Re: Problems with instalation on Apache
Alejandro C. Garrammone wrote:
Hi! I'm installing php 5.0.1 on Apache 2.0.55, I think it's works fine
but when I load an html form they said "Notice: Undefined variable:
submit in C:\Archivos de programa\Apache
Group\Apache2\htdocs\as_insercion.php on line 10" and the other problem
it not connect to the MySQL DB.
Before this I've used MySQL 3.23, PHP 4 and Apache 1.XX.
Ahh....Im using this to work with an Intranet. My IP is 10.21.247.175
Someone could help me to configure this?.
Thxs in advance,
Alex
My best guess is you're trying to use register_globals... which you
shoudn't.
And for the DB... the MySQL extension is not loaded by standard in PHP5.
SO you have to set that in php.ini ;)
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Zend Optomizer 2.6.2 works ok when I use the public release, but when I
try to use a custom build, I get a pretty vague exception when
php-cgi.exe is launched:
php-cgi.exe - Application Error
The instruction at "0x7c98fea" referenced memory at "0x00000010". The
memory could not be "written".
Here is how I load the extension in the php.ini file, but I really don't
think this is the issue since this works on the public build.
zend_extension_ts="C:\php5\ZendOptimizer.dll"
I'm building with 5.1.2 source using the following config:
cscript /nologo configure.js --with-openssl --with-mcrypt --with-mhash
--with-json --enable-sockets --with-zip --enable-soap
Is there anything else I need to enable or disable to get Zend Optimizer
to work?
--- End Message ---