php-windows Digest 19 Jun 2003 01:51:03 -0000 Issue 1783

Topics (messages 20407 through 20417):

Install
        20407 by: Anand Tomar
        20410 by: Per Lundberg
        20413 by: Cory Daehn

Re: Subject: Re: Subject: Re: User Authentication...
        20408 by: Neil Smith
        20411 by: Cristian MARIN

Mail sent an hour before I send it
        20409 by: Charles P. Killmer

Random CGI error on windows advance server
        20412 by: newsclip.ap.org

problems sending mail
        20414 by: Felipe Lorente

Warning: mail(): SMTP server response: 550 Unable to relay
        20415 by: php

Re: PHP 4.3.2 is Slower & Can't Echo to the CLI
        20416 by: Jon Harrell

session problems - WinXP - Apache 1.3 - PHP 4.3.2
        20417 by: Hector Lumang

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 ---
Hi,

i tried installing mysql-4.1.0-alpha, apache, php4.3.2 on windows2000Pro.
now the issue is that i have all the 3 application running and interacting
with each other in
sync ....but every time i try to connect to mysql through php it gives me
this error:

Warning: mysql_connect(): Client does not support authentication protocol
requested by server. Consider upgrading MySQL client

this is the 1st time i am trying to set up a server i will really appreciate
your help....thanks

--anand


--- End Message ---
--- Begin Message ---
On Wed, 2003-06-18 at 14:39, Anand Tomar wrote:
> i tried installing mysql-4.1.0-alpha, apache, php4.3.2 on windows2000Pro.
> now the issue is that i have all the 3 application running and interacting
> with each other in
> sync ....but every time i try to connect to mysql through php it gives me
> this error:
> 
> Warning: mysql_connect(): Client does not support authentication protocol
> requested by server. Consider upgrading MySQL client

This is because MySQL 4.1 has a new protocol that is not compatible with
the old (3.23 and 4.0) protocol.

There is no support for this protocol in PHP 4.3.2 and will unlikely
ever be in the 4.3.x series of PHP.  PHP5 already includes it but it is
not ready yet.

So, in other words, you have two opportunities:

1) Revert back to MySQL 3.23 or 4.0
2) Use the (unstable and not yet released) PHP5 from CVS. 
http://snaps.php.net have pre-compiled snapshots for Windows.  Beware!
that this is a CVS snapshot we are talking about.  You should not expect
it to be bug-free.  You should not expect to even install properly.  You
are totally on your own, and you are expected to fix problems that you
find in the C source code yourself.

But then again, that doesn't mean that it cannot work.  I have had it
running on Linux for quite a while now with very few problems.


I recommend going with option (1) since you seem to say you don't have
very much experience setting PHP up.
--
Best regards,

Per Lundberg / Capio ApS
Phone: +46-18-4186040
Fax: +46-18-4186049
Web: http://www.nobolt.com

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---
--- Begin Message ---
Actually, if she's brave, there's a third option... she could interact
with the MySQL server by using ODBC and the latest MyODBC driver instead
of the built-in MySQL functions...  But that seems like a slower (and much
easier to break) way of doing things.

> So, in other words, you have two opportunities:
>
> 1) Revert back to MySQL 3.23 or 4.0
> 2) Use the (unstable and not yet released) PHP5 from CVS.
> http://snaps.php.net have pre-compiled snapshots for Windows.  Beware!
> that this is a CVS snapshot we are talking about.  You should
> not expect
> it to be bug-free.  You should not expect to even install
> properly.  You
> are totally on your own, and you are expected to fix problems that you
> find in the C source code yourself.

Attachment: smime.p7s
Description: S/MIME cryptographic signature


--- End Message ---
--- Begin Message ---
I wouldn't even consider allowing WebDAV (DAP ?!) on my servers.
Its a microshaft induced security hazard. Turn it off.

Cheers - Neil.

At 12:15 18/06/2003 +0000, you wrote:
Message-ID: <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Reply-To: "Guru P Chaturvedi" <[EMAIL PROTECTED]>
From: "Guru P Chaturvedi" <[EMAIL PROTECTED]>
Date: Wed, 18 Jun 2003 14:03:34 +0530
Subject: Re: Subject: Re: User Authentication...
MIME-Version: 1.0

Hi,

What if the user tries to download the file thru DAP or any other download
tool? Can we restric even that...?

Regards,
Guru.


--- End Message ---
--- Begin Message ---
You cannot turn off this :)) They can authenticate as IE or Netscape Browser
and they are demanding the files just like any other browser. The only
problem for them is that they cannot follow form posting by any method which
return a file, I think by my experience ...

--
-------------------------------------------------
Cristian MARIN - Developer
InterAKT Online (www.interakt.ro)
Tel:         +4021 312.53.12
Tel/Fax:  +4021 312.51.91
[EMAIL PROTECTED]
"Neil Smith" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I wouldn't even consider allowing WebDAV (DAP ?!) on my servers.
> Its a microshaft induced security hazard. Turn it off.
>
> Cheers - Neil.
>
> At 12:15 18/06/2003 +0000, you wrote:
> >Message-ID: <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Reply-To: "Guru P Chaturvedi" <[EMAIL PROTECTED]>
> >From: "Guru P Chaturvedi" <[EMAIL PROTECTED]>
> >Date: Wed, 18 Jun 2003 14:03:34 +0530
> >Subject: Re: Subject: Re: User Authentication...
> >MIME-Version: 1.0
> >
> >Hi,
> >
> >What if the user tries to download the file thru DAP or any other
download
> >tool? Can we restric even that...?
> >
> >Regards,
> >Guru.
>



--- End Message ---
--- Begin Message ---
When I send email through php, the mail is stamped witha time that is an
hour after I send it.  I have checked the time zone and daylight
settings one ALL servers.  
 
I forwarded it to another account and this is the original message.
This was actually sent at 7:53 am.  When I log onto the mail server
directly and send mail the time is correct, so it appears to have
something to do with PHP.  Does anyone have any thoughts on this?
 
-----Original Message-----
From: [EMAIL PROTECTED] 
Sent: Wednesday, June 18, 2003 8:53 AM
To: [EMAIL PROTECTED]
Subject: test
 
Charles Killmer
Netgain Technology
PHP 4.3.2 Windows 2000 Server
 

--- End Message ---
--- Begin Message ---
I have a random cgi misbehaved heasder error that appears seemingly at
random. If I refresh the page it loads. I am running 4.23 on windows advance
server with IIS 5.0. Any solutions?



--- End Message ---
--- Begin Message ---
Hello, could please someone help me with this??
I use the php function mail like this:

mail($to, $subject, $text, "From: $sender
 X-Mailer: PHP/" . phpversion());

And I get the next answer from the server:

 Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for
[EMAIL PROTECTED] in D:\send.php on line 22

Do I need to configure something in my smtp server?? or what can be the
problem??
 Thanks a lot.

 Felipe.



--- End Message ---
--- Begin Message ---
I'm fairly new to php and I'm trying to setup mail functionality from php on
IIS 4.0. I keep getting this error. I have tried ever combination for the
SMTP settings in the php.ini file, but nothing seems to work.
I can send mail using CDONTS on this server, but using php I cannot
<?php
mail("[EMAIL PROTECTED]", "My Subject", "Some info")
?>


thanks for any help



--- End Message ---
--- Begin Message ---
I noticed this error after updating to 4.3.2...
but here is a snipet non the less... hopefully i
can get the echos back ;)


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

function DLCftpLogon($local_dir)
{
    $nl_25 =
"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n";
    echo($nl_25 . $nl_25 . $nl_25);
    echo("***** DLFCO - FTP Status Sheet
Syncronizer v0.2.8 - PHP/Ftp/SMTP *****\n\n");
    echo("Local directory: " . $local_dir . "\n");
    $tn = "\n\n";
    $stftp = "********************FTP File
Upload********************";
    $endftp =
"*************************************************
******\n";
    $host = '###';
    $port = ##;
    $username = '###';
    $userpw = '####';
    global $lnbrk;
    global $enbrk;
    global $dlnbrk;
    set_time_limit(5000);

    // Get the current date in mdy
        $Tmpdate = date("m/d/y");
        $UDdate = "UD:" . $Tmpdate;

    $conn_id = ftp_connect($host, $port)
        or die("Could not locate host\n");

    $login = ftp_login($conn_id, $username,
$userpw);
    if ($login)
        {
        echo("Connected to #########.com :
......................\n\n");
        echo("Current Remote directory : " .
ftp_pwd($conn_id) . "\n");
        //Change the remote directory to
./wwwroot/documents/semipub
        rchdir($conn_id, "wwwroot");
        rchdir($conn_id, "documents");
        rchdir($conn_id, "semipub");

        echo($tn . $stftp . "\n\n" . $lnbrk . "\n"
. $enbrk . "\n");

        // Start the Ftp Checker/Uploader...
        SyncStatSheets('bwe', $conn_id,
$local_dir, $lnbrk);
        SyncStatSheets('mdx', $conn_id,
$local_dir, $lnbrk);
        SyncStatSheets('rrr', $conn_id,
$local_dir, $lnbrk);
        SyncStatSheets('sww', $conn_id,
$local_dir, $lnbrk);
        SyncStatSheets('elsyd', $conn_id,
$local_dir, $lnbrk);

        //If Merged Email $ Exists Send it to all
users
        //$mail_bcc = "[EMAIL PROTECTED]";
        $mail_bcc = "[EMAIL PROTECTED]";
        $mail_from = "[EMAIL PROTECTED]";
        $mail_reply_to = "[EMAIL PROTECTED]";
        $mail_headers = "From:
$mail_from\r\nReply-to: $mail_reply_to\r\nBcc:
$mail_bcc";
        $mail_subject = "New DLC Status Sheet
Updates: $UDdate";

        global $email_yes;
        global $email_merge;

        if($email_yes == 1)
        {
            $mail_b01 = "PLEASE BE
ADVISED:\r\n$lnbrk\r\n";
            $mail_b02 = "The following status
sheets have been updated:\r\n\r\n";
            $mail_b03 =
"$email_merge\r\n$lnbrk\r\n$UDdate\r\n\r\n";
            $mail_b04 = "-The Donald Lawrence Co.
Inc.-";
            $mail_body = $mail_b01 . $mail_b02 .
$mail_b03 . $mail_b04;
            if(mail($mail_bcc, $mail_subject,
$mail_body, $mail_headers))
            {
                echo("Email successfully
sent:\nSubject: $mail_subject!\n\n$lnbrk");
            }else{
                echo("An error occurred while
attempting to send eMail: $mail_subject!");
            }
        }else{
            echo("Nothing to Send.\n\n");
        }


        echo("\n\n\nUpdate
Successfull!\nTerminating FTP Connection
NOW...\n\n");
        ftp_quit($conn_id);
        echo($endftp);
        sleep(5);
        //END OF PROGRAM//

    }else{
        echo("Error Connecting\n");
    }
}



--- End Message ---
--- Begin Message ---
Hi,

I am experiencing problems with session handling on WinXP.  I noticed that evertime I 
use session_start(), a new session id is produced - and so (I think), session data 
could not be passed to the succeeding pages.  How do I prevent this from happening?  
Has anybody come across this problem before and if so, how was this resolved?

Thanks in advance for any response about the matter.  My setup is WinXP - Apache 
1.3.27 - PHP 4.3.2.  I had the same problem when I used IIS5.

Regards,
Hector

--- End Message ---

Reply via email to