php-windows Digest 8 Sep 2004 02:11:43 -0000 Issue 2387

Topics (messages 24533 through 24543):

Re: WELCOME to [EMAIL PROTECTED]
        24533 by: Gryffyn, Trevor

Re: NT username detectable?
        24534 by: Gryffyn, Trevor
        24538 by: Manuel Lemos
        24539 by: Gryffyn, Trevor
        24541 by: Gryffyn, Trevor

Windows, Apache, and PHP
        24535 by: Gross, Dennis
        24536 by: operationsengineer1.yahoo.com
        24537 by: Gross, Dennis
        24542 by: DvDmanDT

PHP and Java
        24540 by: Kelly Cookson

Virtual Host Problem - WinXP Home, Apache 1.3.31, PHP 4.3.8
        24543 by: operationsengineer1.yahoo.com

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 ---
I havn't worked with the code side of Squirrelmail (only the user side)
but just a guess, check the variables and such being used on line 104.
I'm guessing that one of them is null (value == "" or something).
Probablems like this usually occur when the command wants certain
information to be able to do it's job and it's not getting that info.
If you didn't make any changes to the login,php script, and assuming
that the version of Squirrelmail you have SHOULD work ok, then the next
thing I'd check is the values of the variables being used on that
sprintf() command.

I've traced problems like this back to a bad database connection or some
other connection that should have populated the variables being used.
Most frequently, I get an error on "array_key_exists", or "in_array", or
"foreach ($array..." when my DB connection fails and I'm not populating
the array, but sounds like a similar thing.

Good luck!

-TG

> -----Original Message-----
> From: Jose Castilla Gallardo 
> [mailto:[EMAIL PROTECTED] 
> Sent: Monday, September 06, 2004 2:20 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Re: WELCOME to [EMAIL PROTECTED]
> 
> 
> Hi,  i have installing php with squirrelmail and when run 
> squirrelmail 
> found this messages:
> 
> "PHP Warning: sprintf(): Too few arguments in 
> ........webmail\src\login.php on line 104 "
> 
> Do you know what happend???
> 
> 
> Saludos
>     _______________________________________
>     
> 
> >  
> >
> 
> 

--- End Message ---
--- Begin Message ---
I put in a request to have the Windows Integrated Authentication enabled
on the web server that runs my PHP scripts at work here.  Just got a
note back saying that the task was completed, but I still don't see
LOGON_USER in the _ENV or _SERVER (or anywhere in phpinfo).

Does anyone know if there is there anything else that needs to be set in
order to access this variable?

Thanks in advance!

-TG

> -----Original Message-----
> From: Manuel Lemos [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 02, 2004 6:02 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Re: NT username detectable?
> 
> 
> 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
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
Hello,

On 09/07/2004 11:45 AM, Trevor Gryffyn wrote:
I put in a request to have the Windows Integrated Authentication enabled
on the web server that runs my PHP scripts at work here.  Just got a
note back saying that the task was completed, but I still don't see
LOGON_USER in the _ENV or _SERVER (or anywhere in phpinfo).

Does anyone know if there is there anything else that needs to be set in
order to access this variable?

The user must be logged in the same Windows Domain as the one that is required to authenticate.


From what I could gather, if the Web server requires authentication and it fails, the LOGON_USER value is set to an empty string. Therefore, if the LOGON_USER is not set at all, the Web server seems not really be requesting authentication. In that case you need to verify that with server administrator.

--

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 ---
Thanks for the response, Manuel.

Yeah, "LOGON_USER" doesn't show up in PHP or ASP.

It's been a while since I've done any IIS admin and I don't have direct
access to the server setup (and want to minimize the amount of pestering
to our IT staff).  Can someone give me a checklist of things that should
be turned on or settings that should be set and where to find those
settings so I can just tell my people "Go here, do this.." and get it
done?

Does this whole process require the server to "request authentication"?

Would that be a checkbox or setting in IIS, a header sent via PHP, or an
NTFS permission setting?

Thanks for your patience.  There are just a lot of possibilities and I
know these guys hate me bugging them for dumb stuff (that's not a
"mission critical" feature that is) and would like to make it as
painless as possible for them.  Especially if it's something I can just
do in a header sent via PHP or something.

Thanks!

-TG

> -----Original Message-----
> From: Manuel Lemos [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, September 07, 2004 1:51 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Re: NT username detectable?
> 
> 
> Hello,
> 
> On 09/07/2004 11:45 AM, Trevor Gryffyn wrote:
> > I put in a request to have the Windows Integrated 
> Authentication enabled
> > on the web server that runs my PHP scripts at work here.  Just got a
> > note back saying that the task was completed, but I still don't see
> > LOGON_USER in the _ENV or _SERVER (or anywhere in phpinfo).
> > 
> > Does anyone know if there is there anything else that needs 
> to be set in
> > order to access this variable?
> 
> The user must be logged in the same Windows Domain as the one that is 
> required to authenticate.
> 
>  From what I could gather, if the Web server requires 
> authentication and it fails, the LOGON_USER value is set to an
> empty string. Therefore, if the LOGON_USER is not set at all,
> the Web server seems not really be requesting authentication.
> In that case you need to verify that with server administrator.
> 
> -- 
> 
> 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 ---
I jumped a little too quick.  I found this on MS's site:
http://support.microsoft.com/default.aspx?scid=kb;en-us;188717

I'm going to ask them to take a look into that.

Thanks again!

-TG

> -----Original Message-----
> From: Gryffyn, Trevor 
> Sent: Tuesday, September 07, 2004 2:14 PM
> To: [EMAIL PROTECTED]
> Cc: 'Manuel Lemos'
> Subject: RE: [PHP-WIN] Re: NT username detectable?
> 
> 
> Thanks for the response, Manuel.
> 
> Yeah, "LOGON_USER" doesn't show up in PHP or ASP.
> 
> It's been a while since I've done any IIS admin and I don't 
> have direct access to the server setup (and want to minimize 
> the amount of pestering to our IT staff).  Can someone give 
> me a checklist of things that should be turned on or settings 
> that should be set and where to find those settings so I can 
> just tell my people "Go here, do this.." and get it done?
> 
> Does this whole process require the server to "request 
> authentication"?
> 
> Would that be a checkbox or setting in IIS, a header sent via 
> PHP, or an NTFS permission setting?
> 
> Thanks for your patience.  There are just a lot of 
> possibilities and I know these guys hate me bugging them for 
> dumb stuff (that's not a "mission critical" feature that is) 
> and would like to make it as painless as possible for them.  
> Especially if it's something I can just do in a header sent 
> via PHP or something.
> 
> Thanks!
> 
> -TG
> 
> > -----Original Message-----
> > From: Manuel Lemos [mailto:[EMAIL PROTECTED] 
> > Sent: Tuesday, September 07, 2004 1:51 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP-WIN] Re: NT username detectable?
> > 
> > 
> > Hello,
> > 
> > On 09/07/2004 11:45 AM, Trevor Gryffyn wrote:
> > > I put in a request to have the Windows Integrated 
> > Authentication enabled
> > > on the web server that runs my PHP scripts at work here.  
> Just got a
> > > note back saying that the task was completed, but I still 
> don't see
> > > LOGON_USER in the _ENV or _SERVER (or anywhere in phpinfo).
> > > 
> > > Does anyone know if there is there anything else that needs 
> > to be set in
> > > order to access this variable?
> > 
> > The user must be logged in the same Windows Domain as the 
> one that is 
> > required to authenticate.
> > 
> >  From what I could gather, if the Web server requires 
> > authentication and it fails, the LOGON_USER value is set to an
> > empty string. Therefore, if the LOGON_USER is not set at all,
> > the Web server seems not really be requesting authentication.
> > In that case you need to verify that with server administrator.
> > 
> > -- 
> > 
> > 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 ---
Hi.  I am trying to install Apache and PHP on a desktop running Windows XP.
This is a test site, I am not interested in a live site yet.  When I try to
run Apache, I get the message that the system could not find the
php4apache.dll.  This is a line in the httpd.conf file, but there is no
php4apache.dll on my PC.  The PHP version is 4.3.3.8, and Apache is is
version 1.3.something.  Can anyone help?  

Dennis

--- End Message ---
--- Begin Message ---
dennis, the first step is to get apache running.  did you do that?  did you test it by 
typing in "localhost" and getting the apache page?  i also found it easier t install 
apache to the c:\ so that the path ends up being c:\apache.  The default includes 
"Program files" in the path and I think the space caused me some big time grief.  you 
may be able to overcome that by using quote marks surrounding the path, but i chose to 
install at c:\ instead.

php4apache.dll should be in your php/dll folder (there is another important file i 
can't recall right now).  i moved it up to my c:\php folder which i put in my xp path 
startup path.  if you don't have it i don't think php wll run.
 
give me a little more information and i'll help from there.

"Gross, Dennis" <[EMAIL PROTECTED]> wrote:
Hi. I am trying to install Apache and PHP on a desktop running Windows XP.
This is a test site, I am not interested in a live site yet. When I try to
run Apache, I get the message that the system could not find the
php4apache.dll. This is a line in the httpd.conf file, but there is no
php4apache.dll on my PC. The PHP version is 4.3.3.8, and Apache is is
version 1.3.something. Can anyone help? 

Dennis

                
---------------------------------
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.

--- End Message ---
--- Begin Message ---
Thank you so much for the help.  What do you mean by getting Apache running?
I've been clicking on an icon in my Start Menu that says Start Apache in
Console.  I then get the error message; there is no place to type in
localhost.  I installed PHP as a direct subdirectory of C:\, although I did
install Apache in Program Files.  I don't have php\dll folder, so it is
possible that I am not getting a complete installation when I install.  I've
tried removing and reinstalling several times, but its possible that is a
problem.

 

Dennis

 

  _____  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 07, 2004 1:39 PM
To: Gross, Dennis; '[EMAIL PROTECTED]'
Subject: Re: [PHP-WIN] Windows, Apache, and PHP

 

dennis, the first step is to get apache running.  did you do that?  did you
test it by typing in "localhost" and getting the apache page?  i also found
it easier t install apache to the c:\ so that the path ends up being
c:\apache.  The default includes "Program files" in the path and I think the
space caused me some big time grief.  you may be able to overcome that by
using quote marks surrounding the path, but i chose to install at c:\
instead.

php4apache.dll should be in your php/dll folder (there is another important
file i can't recall right now).  i moved it up to my c:\php folder which i
put in my xp path startup path.  if you don't have it i don't think php wll
run.

 

give me a little more information and i'll help from there.


"Gross, Dennis" <[EMAIL PROTECTED]> wrote:

Hi. I am trying to install Apache and PHP on a desktop running Windows XP.
This is a test site, I am not interested in a live site yet. When I try to
run Apache, I get the message that the system could not find the
php4apache.dll. This is a line in the httpd.conf file, but there is no
php4apache.dll on my PC. The PHP version is 4.3.3.8, and Apache is is
version 1.3.something. Can anyone help? 

Dennis

  _____  

Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter
<http://us.rd.yahoo.com/evt=26640/*http:/promotions.yahoo.com/goldrush>
now.


--- End Message ---
--- Begin Message ---
If you don't have php4apache.dll, then you probably don't have php at all..
Or you could have php5 which is called php5apache.dll.. Or did you run the
installer? I suggest you read the manual at php.net and the installation
instructions there.. Also, be sure to install PHP using the zip file..

php4apache.dll is located in the sapi folder.. php4ts.dll which is another
important file is located in the root folder of your php installation.. You
might need to move that one to a better place.. Read manual for more info..
http://php.net/manual/en/
-- 
// DvDmanDT
MSN: dvdmandt�hotmail.com
Mail: dvdmandt�telia.com
"Dennis Gross" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Hi.  I am trying to install Apache and PHP on a desktop running Windows
XP.
> This is a test site, I am not interested in a live site yet.  When I try
to
> run Apache, I get the message that the system could not find the
> php4apache.dll.  This is a line in the httpd.conf file, but there is no
> php4apache.dll on my PC.  The PHP version is 4.3.3.8, and Apache is is
> version 1.3.something.  Can anyone help?
>
> Dennis
>

--- End Message ---
--- Begin Message ---
I learning PHP and have two test environments set up.
My home environment runs PHP5 as an Apache 1.3 module
on a Windows Me machine. My work environment runs PHP5
as an Apache 1.3 module on a Windows 2000 machine.
Both machines have their CLASSPATH variables set to
include a directory with Java classes in it
(CLASSPATH='.;C:\javalinks').

On the Windows Me machine, my PHP scripts can run the
Java programs and return the output:

  $java=shell_exec('java JavaProgram');
  echo($java);

But the same scripts do not seem to execute the Java
programs on my Windows 2000 machine.

Any ideas why, or how I can get my PHP scripts to
execute Java programs on the Windows 2000 machine?

Thanks,
Kelly




                
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

--- End Message ---
--- Begin Message ---
Hi all, i'm having trouble getting virtual hosting to recognize subdirectories of my 
root directory. i go over my phpini, hosts and httpd.conf file additions/edits and 
then i discuss the unexpected results that i'm getting.  tia for any suggestions to 
get back to the land of the expected.
 
 
PHP.INI FILE
 
doc_root = "c:\web"
extension_dir = "c:\php\extensions"
extension=php_pgsql.dll 
extension=php_dbg.dll-4.3.6
 
 
HOSTS
 
127.0.0.1 localhost
127.0.0.1 site1.com
 
 
HTTPD.CONF
 
ServerName localhost
...
DocumentRoot "C:/web"
...
<Directory "C:/web">
...
DirectoryIndex index.php index.htm index.html
...
SetEnv PHPRC "c:/php"
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .htm
AddType application/x-httpd-php .html
Action application/x-httpd-php "/php/php.exe"
...
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
 DocumentRoot "C:/web"
 ServerName site1.com
</VirtualHost>
when i type in localhost or site1.com into my browser, i'm taken to the index.php file 
in c:\php as one wouold expect.  however, when i update my virtualhost directive to...
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
 DocumentRoot "C:/web/site1"
 ServerName site1.com
</VirtualHost>
then i get taken right back to C:/web instead of C:/web/site when i type in site1.com. 
 i can't get apache to recognize lower level folders using the virtualhost directive.


                
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!

--- End Message ---

Reply via email to