php-windows Digest 15 Sep 2004 01:52:21 -0000 Issue 2396
Topics (messages 24570 through 24577):
Re: Reading mapped drive with PHP5
24570 by: Gryffyn, Trevor
Re: NT username detectable?
24571 by: Stut
24572 by: Manuel Lemos
24573 by: Gryffyn, Trevor
IIS6 and multiple php.ini
24574 by: Artis Mucenieks
PHP + fSockOpen
24575 by: Siegfried
24577 by: Manuel Lemos
Secure LDAP
24576 by: Christopher Derr
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 found this page relating to mapped drives and PHP:
http://bugs.php.net/bug.php?id=26214&edit=1
Since you upgraded your PHP, maybe some of your other settings changed
as well. This page indicates that mapped drives are user-specific and
if your PHP script is running as a different user, that it might not
have access to the same mappings and that cause a problem.
This page:
http://www.phpbuilder.com/board/showthread.php?threadid=10262019
Mentions someone who couldn't use the UNC but could use a mapped drive.
They said changing to the CGI version enabled them to use the UNC.
Sounds like a far shot, and I have no idea why this would make a
difference (I'm sure someone on here does though.. I'd be curious to
find out).
Some things to look into at least.
-TG
> -----Original Message-----
> From: George Pitcher [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 14, 2004 5:56 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Reading mapped drive with PHP5
>
>
> Hi,
>
> No response received after my request yesterday, so I'll try again.
>
> I have a script that copies a file from a mapped drive on my
> local network
> and places it in a particular directory on my laptop. I then
> do somethjing
> with the file.
>
> While I ran PHP4.3 it worked like a dream, and since
> upgrading to PHP5, it
> just ignores the call - not even an error message is getting
> displayed.
>
> Can anyone shed any light on why this is happening (access permissions
> haven't changed since upgrading)?
>
> Better still, does anyone know the solution?
>
> Cheers
>
> George in Oxford
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
On Mon, 13 Sep 2004 16:07:36 -0400, Gryffyn, Trevor
<[EMAIL PROTECTED]> wrote:
> Ok, I finally talked our IT guys into turning off the "Anonymous Access"
> and I can get into the PHP scripts just fine and "LOGON_USER" is
> populated just fine, but some of the other users in the company get a
> popup login request when they hit my PHP pages.
>
> If they log in with their usual domain login, password and domain name,
> they can get in just fine.
>
> The first thought is permissions. But now it's doing it to my login
> which it didn't do at first. And I should have full permissions on that
> folder and all.
>
> Could it be that that machine MAY be on another domain? We apparently
> have two domains here and I'm not sure which one it belongs to. Does
> that make any sense to anyone?
It's probably the domain thing. I have similar problems here running
Apache 2, PHP 4.3.8 and mod_auth_sspi 1.0.1. In typical MS fashion
it's hard to put a finger on exactly what causes it, but if the PDC is
rebooted and someone tries going to the site without logging out then
back in it will ask for the password. There are various other
scenarios and a few people who just can't do it without entering their
details. I'm not sure why it happens since not enough people have the
problem to warrant looking into it.
Hope that ramble helped a bit.
--
Stut
--- End Message ---
--- Begin Message ---
Hello,
On 09/14/2004 10:17 AM, Trevor Gryffyn wrote:
Thanks for the note. Unfortunately I don't have visibility to the
settings they've chosen on the IIS box. I told them I wanted just
Windows Integrated Authentication activated, but initially they left
"anonymous" still activated. Maybe they still have Basic turned on as
well.
I just assumed they knew what they were doing.. Hah.. Silly me.
Basic autentication is not anonymous access. Basic authentication is a
fallback that is specified when NTLM authentication can't be used. That
may be the case when you are logged on Windows domain different than the
Web server is requesting.
--
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 ---
Well, nobody seemed to change anything and it's not doing the basic
authentication request today, so I don't know what the deal is. Maybe
something like Stut mentioned with someon rebooting a server or
something. I don't know. A lot of odd things happened yesterday on our
network. Everything seems to have shaken loose today and there are no
problems. Ahh the fun.
Looks like we have an old old domain still running, but only a couple of
machines are on it and they're being transitioned out, so the issue
wasn't a matter of the server being on another domain as the users.
Really don't know what the issue was, but it was failing to do
integrated auth initially, now it's working fine. I think the server
just wanted to complain.
Thanks again for all the suggestions!
-TG
> -----Original Message-----
> From: Manuel Lemos [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 14, 2004 10:08 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] NT username detectable?
>
>
> Hello,
>
> On 09/14/2004 10:17 AM, Trevor Gryffyn wrote:
> > Thanks for the note. Unfortunately I don't have visibility to the
> > settings they've chosen on the IIS box. I told them I wanted just
> > Windows Integrated Authentication activated, but initially they left
> > "anonymous" still activated. Maybe they still have Basic
> turned on as
> > well.
> >
> > I just assumed they knew what they were doing.. Hah.. Silly me.
>
> Basic autentication is not anonymous access. Basic
> authentication is a
> fallback that is specified when NTLM authentication can't be
> used. That
> may be the case when you are logged on Windows domain
> different than the
> Web server is requesting.
>
> --
>
> Regards,
> Manuel Lemos
> It's probably the domain thing. I have similar problems here running
> Apache 2, PHP 4.3.8 and mod_auth_sspi 1.0.1. In typical MS fashion
> it's hard to put a finger on exactly what causes it, but if the PDC is
> rebooted and someone tries going to the site without logging out then
> back in it will ask for the password. There are various other
> scenarios and a few people who just can't do it without entering their
> details. I'm not sure why it happens since not enough people have the
> problem to warrant looking into it.
>
> Hope that ramble helped a bit.
>
> --
> Stut
>
--- End Message ---
--- Begin Message ---
Hi.
I have following problem, how to make iis6 with php isapi extension to read
multiple different php.ini files for different web sites. I tried to use per
directory values to modify behavior of php, but some settings does not work
this way. Does anyone have some suggestion about this?
Artis.
--- End Message ---
--- Begin Message ---
Why does my opened socket not receive unicode data?
I have made a script for translating my languagefile using babelfish,
but when translating to russian,chinese,japanese, etc. i only gets
either " " or ");" as result.
What may be the problem?
The code is as follows:
$host = "babelfish.altavista.com";
$codebegin = 'style=padding:10px;>';
$codeend = '</div>';
$word = "hello";
$fp = fsockopen("{$host}", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
$returned = "";
$pp = "lp=en_jp&trtext=".urlencode("$word");
$post = "POST /tr HTTP/1.1\r\n";
$post .= "Host: {$host}\r\n";
$post .= "Content-type: application/x-www-form-urlencoded\r\n";
$post .= "Content-length: ".strlen($pp)."\r\n";
$post .= "Connection: Close\r\n";
$post .= "\r\n";
$post .= $pp;
$out = $post;
fwrite($fp, $out);
while (!feof($fp)) {
$returned.= fgets ($fp, 128);
}
$pos = strpos($returned,$codebegin);
if("'{$pos}'" != "''"){
$pos2 = strpos($returned,$codeend,$pos);
$w2 = substr($returned, $pos + strlen($codebegin), $pos2 - ($pos +
strlen($codebegin))); ".chr(13).chr(10));
print '{$w2}'; #{$word}";
}
}
fclose($fp);
/* #LanguageCodes:
en_zh
en_zt
en_nl
en_fr
en_de
en_el
en_it
en_ja
en_ko
en_pt
en_ru
en_es
*/
--- End Message ---
--- Begin Message ---
Hello,
On 09/13/2004 02:20 PM, Siegfried wrote:
Why does my opened socket not receive unicode data?
I have made a script for translating my languagefile using babelfish,
but when translating to russian,chinese,japanese, etc. i only gets
either " " or ");" as result.
What may be the problem?
If you are going to make an HTTP 1.1 request, you need to be able to
handled chunked responses.
If you do not know how to do it right, you may want try this HTTP client
class that can do it for you including submiting POST form requests:
http://www.phpclasses.org/httpclient
--
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 did a cursory search of the newsgroup, google and the buglist but I
didn't see anything definitive. I've got a WinNT box running Apache and
PHP 4.3.1. I can connect via ldap fine. Ldaps connects, but won't bind
with my login and password, though it does on my linux box without issue.
I'm wondering what I may be missing. The dlls (libeay and ssleay) are
in the proper place. PHPinfo states ldap and ssl are enabled.
Is it the Windows version of ldap in PHP? Or is it me?
Thanks
Chris
--- End Message ---