php-windows Digest 19 Jul 2001 14:16:57 -0000 Issue 659

Topics (messages 8385 through 8396):

Windows 2000 Advanced server trying to do a - header("WWW-Authenticate: Basic 
realm=\"Admin\"")
        8385 by: pmt_2k

Re: IIS4 doesn't start - Event Error 14
        8386 by: t.stocker.freytelecom.ch
        8387 by: Phil Driscoll

Re: PHP and IIS and Win2k and Access Violation problems...
        8388 by: vzion
        8393 by: elias

Re: Lotus notes
        8389 by: elias

Re: how to update the cookie?
        8390 by: elias

Re: Send array from php to dll make in vb 6
        8391 by: elias
        8394 by: Luiz Fernando \(Tuca\)

Re: Password Protection
        8392 by: elias
        8395 by: Erin's Fan Club (C)

php_pdf.dll
        8396 by: Steen Rabøl

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]


----------------------------------------------------------------------


Hi,

im trying to get ie to throw up a www-authenticate box for username /
password input. im running windows 2000 advanced server and php 4.0
the code im using (trying to anyway)

<?php
if (!isset($PHP_AUTH_USER))

Header("WWW-Authenticate: Basic realm=\"Admin\"");
Header("HTTP/1.0 401 Unauthorized");
$REMOTE_USER = "";
$REMOTE_PASSWORD = "";
$PHP_AUTH_USER = "";
$PHP_AUTH_PW = "";
print "You hit cancel! if it was an accident please <a
href=\"$PHP_SELF\">click here</a> to try again.";
exit;
} else if ((!$PHP_AUTH_USER == "user") && ($PHP_AUTH_PW == "pass"))

print "You are unauthorized";
}
?>

it doesn't throw up the password box and just assumes that the two variables
are not set (which they wont be because the box never showed anyway)

Please help sched some light onto this subject

Cheers







Hi Phil, Hello List

First: Thanks for your help.

Yes I controlled it twice. In the server properties (root MIME mapping)
is no PHP - ISAPI Filter, and no MIME mappint pointig to this dll. 
Neither on the webs themselfes. There is no more php4isapi.dll needed,
but Windows cries for it ... ???

Thats the strange part of this error ...

Problem is: The service won't restart, the webs are down after
the graphical logfiles are generated at 24:00 in the night. And
thats a BIG prob. We're hosting ~50 customer webs on that server...

Today the same error. The webs were down ! And I cannot imagine
where the problem is, cause the needed dll is in its place, and
I cannot imagine why this dll is needed at all.

HELP !

........................................
FREY + CIE TELECOM NWS
Thomas Stocker 
Netzwerktechniker / Webmaster
Hirschmattstrasse 32
CH - 6003 Luzern
Switzerland
phone  :  ++41 (0)41 228 28 82
direct :  ++41 (0)41 228 29 70
fax    :  ++41 (0)41 228 29 85
[EMAIL PROTECTED]
URL: http://www.freytelecom.ch
........................................


> -----Original Message-----
> From: Phil Driscoll [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 18, 2001 5:00 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] IIS4 doesn't start - Event Error 14
> 
> 
> On Wednesday 18 July 2001 15:21, [EMAIL PROTECTED] wrote:
> > Hi there
> >
> > We have a strange problem. On an WinNT Box (SP6a, all hotfixes)
> > I get this error:
> >
> > The HTTP Filter DLL C:\WINNT\php4isapi.dll failed to load.
> > The data is the error. (NT Event 14)
> 
> Are you sure you removed php4isapi.dll from the list of isapi filters?
> 
> Cheers
> -- 
> Phil Driscoll






On Thursday 19 July 2001 08:04, [EMAIL PROTECTED] wrote:
> Hi Phil, Hello List
>
> First: Thanks for your help.
>
> Yes I controlled it twice. In the server properties (root MIME mapping)
> is no PHP - ISAPI Filter, and no MIME mappint pointig to this dll.
> Neither on the webs themselfes. There is no more php4isapi.dll needed,
> but Windows cries for it ... ???
>
There is also an 'ISAPI Filters' tab in the web site properties dialog box - 
have you checked in there for PHP?

Cheers
-- 
Phil Driscoll





Hi,

I have the same problem. It seems to work until not : ramdomly.

Is there specifics rights ot memory setup to adjust ?

Thanx to help us !

Laurent


"Elias" <[EMAIL PROTECTED]> a écrit dans le message news:
[EMAIL PROTECTED]
> Hi!
>
> I've recently setup PHP on my Win2000 with IIS5,
>
> Sometimes PHP works and other time it doesn't...
>
> When it doesn't it just prints out:
> PHP has encountered an Access Violation at 00EC24B6
>
> Can't someone shed some lights please?
>
>
>






You only have to run PHP as CGI instead of ISAPI,

Since i done that all works fine!

"Vzion" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I have the same problem. It seems to work until not : ramdomly.
>
> Is there specifics rights ot memory setup to adjust ?
>
> Thanx to help us !
>
> Laurent
>
>
> "Elias" <[EMAIL PROTECTED]> a écrit dans le message news:
> [EMAIL PROTECTED]
> > Hi!
> >
> > I've recently setup PHP on my Win2000 with IIS5,
> >
> > Sometimes PHP works and other time it doesn't...
> >
> > When it doesn't it just prints out:
> > PHP has encountered an Access Violation at 00EC24B6
> >
> > Can't someone shed some lights please?
> >
> >
> >
>
>






How do you mean PHP scripts under lotus?
what's *lotus*?
"Slide" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is anyone tried to make php scripts under lotus ??
> Is anyone know if it's compatible ?
>
> Thank' in advance
> S.L
>
>






I hate cookies, but i guess you have to:
1) Kill it then reload the page
2) Create it and set a value then reload the page

"Science" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>      Does anybody know how to update the value in the cookie?
> Thanks
>
> DP
>
>






how can you call a dll from PHP/win ?
"Luiz Fernando )" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I make a dll in Vb6 and it have a funcition that have a variable of type
> VARIANT like parameter.
> In the program php I call this dll and your method and send a array make
in
> php.
> Occurs a error : Invoke Failed : "Occured a exception", but if I pass a
> variable of type integer or string to other method of dll, it's OK.
>
> Thanks
>
> Luiz Fernando
>
>
>






<?
$mydll=COM("Classe.XXXX") or die("ERROR CALL DLL");
$array1=array(1,2,3);
$ret=$mydll->takeArray($array) // the error occurs here..

?>

Elias <[EMAIL PROTECTED]> escreveu nas notícias de
mensagem:[EMAIL PROTECTED]
> how can you call a dll from PHP/win ?
> "Luiz Fernando )" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I make a dll in Vb6 and it have a funcition that have a variable of type
> > VARIANT like parameter.
> > In the program php I call this dll and your method and send a array make
> in
> > php.
> > Occurs a error : Invoke Failed : "Occured a exception", but if I pass a
> > variable of type integer or string to other method of dll, it's OK.
> >
> > Thanks
> >
> > Luiz Fernando
> >
> >
> >
>
>






try like that:
<?
$result = mysql_query("SELECT password FROM newsauthors WHERE author='$name'
AND password='$code'");
if (mysql_num_rows($result) == 0)
{
// sorry wrong password
} else { // correct pwd }


"Nintendoodle" <[EMAIL PROTECTED]> wrote in message
002701c10ff5$bb273e80$[EMAIL PROTECTED]">news:002701c10ff5$bb273e80$[EMAIL PROTECTED]...
I am trying to get a content management system up and running on my site. I
want to have the thing password protected, and this was how I was going
about it, passing on name and password variables in the urls of the
management system. However, this doesnt work, it just says your password in
correct, even when it is not.

Any help ?

<?php
$code = mysql_query("SELECT password FROM newsauthors WHERE $name =
author");
?>
<?php
if ($code = $password) {
?>
//Content manager stuff goes here
<?
} else {
echo( "You have entered an incorrect password, or you do not have access to
this part of the Staff area. Please press back on your browser and re-enter
details." );
}
?>

Thanks in advance







It is more correct to use 'else' as a default error catch. It is
far better to turn it aroud like;

<?
$result = mysql_query("SELECT password, author FROM newsauthors WHERE 
author='$name' AND password='$code'");
// If no rows are returned the user is not valid
// However if two rows are return there is also a problem!
if(mysql_num_rows($result) != 0):
   {
   while($result):  // Loop through $result array
      {
      $stored_password=$result[0];
      $stored_author=$result[1];
      // Check author and pasword match
      if(($stored_password == $code) && ($stored_author == $name)):
          {
          Print "Correct password"; // if correct
          }
      else:
          {
          Print "Authetication failed";  // if failed
          }
      end if;
      }
   end  while;
   } 
// If no rows found in DB to match author and password
else:
   {
    Print "Authentication failed";
   }
end if;

Have fun & hope this helps

Regards EF

>===== Original Message From "elias" <[EMAIL PROTECTED]> =====
>try like that:
><?
>$result = mysql_query("SELECT password FROM newsauthors WHERE author='$name'
>AND password='$code'");
>if (mysql_num_rows($result) == 0)
>{
>// sorry wrong password
>} else { // correct pwd }
>
>
>"Nintendoodle" <[EMAIL PROTECTED]> wrote in message
>002701c10ff5$bb273e80$[EMAIL PROTECTED]">news:002701c10ff5$bb273e80$[EMAIL PROTECTED]...
>I am trying to get a content management system up and running on my site. I
>want to have the thing password protected, and this was how I was going
>about it, passing on name and password variables in the urls of the
>management system. However, this doesnt work, it just says your password in
>correct, even when it is not.
>
>Any help ?
>
><?php
>$code = mysql_query("SELECT password FROM newsauthors WHERE $name =
>author");
>?>
><?php
>if ($code = $password) {
>?>
>//Content manager stuff goes here
><?
>} else {
>echo( "You have entered an incorrect password, or you do not have access to
>this part of the Staff area. Please press back on your browser and re-enter
>details." );
>}
>?>
>
>Thanks in advance
>
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]





Hi

Would someone be so kind to rebuild the php_pdf.dll without the www.pdflib.com logo ?
Even better a complete guide on how to rebuild php and all the extensions.

Thanks in advance.
Steen



Reply via email to