php-windows Digest 28 Feb 2002 03:49:13 -0000 Issue 1021

Topics (messages 12326 through 12335):

Re: mail() function EXTREMELY slow
        12326 by: Mike Eynon
        12327 by: Svensson, B.A.T. (HKG)
        12328 by: David M. Patterson at DPLH Enterprises
        12332 by: Matt Hillebrand
        12333 by: Ross Fleming

sending mail with mail()
        12329 by: Aris Basic
        12330 by: DL Neil
        12334 by: DL Neil

Re: compiling from cvs with vc++.net
        12331 by: Christoph Grottolo

Building for Windows. HOW?? Can't find GOOD docs anywhere!
        12335 by: Jobarr

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 have to agree.  I am using php mail() on my local net without any
problems.  The only thing I am doing differently is using a LINUX box for my
mail server.  My php mail() calls happen almost instantaneously.

Mike.


// Mike Eynon
// www.MikeEynon.com
// 1366 Bulb Ave.
// Santa Cruz, CA  95062
// 831.588.2388

-----Original Message-----
From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 5:23 AM
To: 'Matt Hillebrand'
Cc: php-windows
Subject: RE: [PHP-WIN] mail() function EXTREMELY slow


Hand on your heart: Do you really believe that this is due to a slowness in
the mail() function of php?

It might, and is probably, related to your own network. For example: have
you check the ICMP traffic, to see if your network traffic is routed
correctly? You might have a router in the routing list that is a "wacko"
router, and that might causes sporadic network hangs, and disconnection's.

        /Anders


>-----Original Message-----
>From: Matt Hillebrand [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 27, 2002 12:27 AM
>To: [EMAIL PROTECTED]; php-windows
>Subject: RE: [PHP-WIN] mail() function EXTREMELY slow
>
>
>Yeah, I know about the max time variable, but it would be unacceptable to
>take over a minute or two to send a handful of emails!
>
>I read an article that said you could use your ISP's SMTP
>server for the
>mail() function, but that didn't seem to work.
>
>
>
>Matt Hillebrand
>Web Developer
>[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
>-----Original Message-----
>From: Ross Fleming [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 26, 2002 3:28 PM
>To: Matt Hillebrand; php-windows
>Subject: RE: [PHP-WIN] mail() function EXTREMELY slow
>
>
>I hope you're not spamming... ;)
>
>In php.ini:
>
>max_execution_time=30     ; Maximum execution time of each script, in
>seconds
>
>Change it to what you need.  The speed is pretty much
>dependent on your SMTP
>server though.
>
>Ross
>
>-----Original Message-----
>From: Matt Hillebrand [mailto:[EMAIL PROTECTED]]
>Sent: 26 February 2002 23:13
>To: php-windows
>Subject: [PHP-WIN] mail() function EXTREMELY slow
>
>
>I'm using the SMTP server that my company owns, but it takes
>forever just to
>send one email message. Trying to send a batch of emails with
>PHP's mail()
>function takes so long, that the script expires and I get an
>error message.
>
>I tried searching the archives of this list, but that search
>page seems to
>be broken.
>
>Thanks!
>
>
>Matt Hillebrand
>[EMAIL PROTECTED]
>
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Just some small thought from a small minded person:

Does the web server resolve the mail client, and/or the protocol properly?
Or does it has to "look around in the neighborhood" for it?

The mail clients you mentioned below, are these executed on the same system
as the php scripts are running, or at some other host?

Have you tried to do a telnet on port 25 from the web server to the SMTP
server to see whats happening?

Cheers,

        /Anders

>-----Original Message-----
>From: David M. Patterson at DPLH Enterprises
>[mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 27, 2002 5:09 PM
>To: Php-Windows-List; Svensson, B.A.T. (HKG)
>Subject: RE: [PHP-WIN] mail() function EXTREMELY slow
>
>
>I need to add my 2 cents worth here.
>I use php to send email and use my ISP's SMTP server to do it.
>And I still experience the slowness. The curious thing is that
>I don't experience this slowness with any of the standard mail
>clients when sending mail (Outlook, Eudora, etc.)
>
>For whatever it's worth...
>
>Dave
>
>-----Original Message-----
>From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 27, 2002 5:23 AM
>To: 'Matt Hillebrand'
>Cc: php-windows
>Subject: RE: [PHP-WIN] mail() function EXTREMELY slow
>
>
>Hand on your heart: Do you really believe that this is due to 
>a slowness in
>the mail() function of php?
>
>It might, and is probably, related to your own network. For 
>example: have
>you check the ICMP traffic, to see if your network traffic is routed
>correctly? You might have a router in the routing list that is 
>a "wacko"
>router, and that might causes sporadic network hangs, and 
>disconnection's.
>
>       /Anders
>
>
>>-----Original Message-----
>>From: Matt Hillebrand [mailto:[EMAIL PROTECTED]]
>>Sent: Wednesday, February 27, 2002 12:27 AM
>>To: [EMAIL PROTECTED]; php-windows
>>Subject: RE: [PHP-WIN] mail() function EXTREMELY slow
>>
>>
>>Yeah, I know about the max time variable, but it would be 
>unacceptable to
>>take over a minute or two to send a handful of emails!
>>
>>I read an article that said you could use your ISP's SMTP 
>>server for the
>>mail() function, but that didn't seem to work.
>>
>>
>>
>>Matt Hillebrand
>>Web Developer
>>[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>>
>>
>>-----Original Message-----
>>From: Ross Fleming [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, February 26, 2002 3:28 PM
>>To: Matt Hillebrand; php-windows
>>Subject: RE: [PHP-WIN] mail() function EXTREMELY slow
>>
>>
>>I hope you're not spamming... ;)
>>
>>In php.ini:
>>
>>max_execution_time=30     ; Maximum execution time of each script, in
>>seconds
>>
>>Change it to what you need.  The speed is pretty much 
>>dependent on your SMTP
>>server though.
>>
>>Ross
>>
>>-----Original Message-----
>>From: Matt Hillebrand [mailto:[EMAIL PROTECTED]]
>>Sent: 26 February 2002 23:13
>>To: php-windows
>>Subject: [PHP-WIN] mail() function EXTREMELY slow
>>
>>
>>I'm using the SMTP server that my company owns, but it takes 
>>forever just to
>>send one email message. Trying to send a batch of emails with 
>>PHP's mail()
>>function takes so long, that the script expires and I get an 
>>error message.
>>
>>I tried searching the archives of this list, but that search 
>>page seems to
>>be broken.
>>
>>Thanks!
>>
>>
>>Matt Hillebrand
>>[EMAIL PROTECTED]
>>
>>
>>
>>
>>--
>>PHP Windows Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>--
>>PHP Windows Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>>
>>-- 
>>PHP Windows Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
--- End Message ---
--- Begin Message ---
I need to add my 2 cents worth here.
I use php to send email and use my ISP's SMTP server to do it.
And I still experience the slowness. The curious thing is that
I don't experience this slowness with any of the standard mail
clients when sending mail (Outlook, Eudora, etc.)

For whatever it's worth...

Dave

-----Original Message-----
From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 5:23 AM
To: 'Matt Hillebrand'
Cc: php-windows
Subject: RE: [PHP-WIN] mail() function EXTREMELY slow


Hand on your heart: Do you really believe that this is due to a slowness in
the mail() function of php?

It might, and is probably, related to your own network. For example: have
you check the ICMP traffic, to see if your network traffic is routed
correctly? You might have a router in the routing list that is a "wacko"
router, and that might causes sporadic network hangs, and disconnection's.

        /Anders


>-----Original Message-----
>From: Matt Hillebrand [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 27, 2002 12:27 AM
>To: [EMAIL PROTECTED]; php-windows
>Subject: RE: [PHP-WIN] mail() function EXTREMELY slow
>
>
>Yeah, I know about the max time variable, but it would be unacceptable to
>take over a minute or two to send a handful of emails!
>
>I read an article that said you could use your ISP's SMTP 
>server for the
>mail() function, but that didn't seem to work.
>
>
>
>Matt Hillebrand
>Web Developer
>[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
>-----Original Message-----
>From: Ross Fleming [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 26, 2002 3:28 PM
>To: Matt Hillebrand; php-windows
>Subject: RE: [PHP-WIN] mail() function EXTREMELY slow
>
>
>I hope you're not spamming... ;)
>
>In php.ini:
>
>max_execution_time=30     ; Maximum execution time of each script, in
>seconds
>
>Change it to what you need.  The speed is pretty much 
>dependent on your SMTP
>server though.
>
>Ross
>
>-----Original Message-----
>From: Matt Hillebrand [mailto:[EMAIL PROTECTED]]
>Sent: 26 February 2002 23:13
>To: php-windows
>Subject: [PHP-WIN] mail() function EXTREMELY slow
>
>
>I'm using the SMTP server that my company owns, but it takes 
>forever just to
>send one email message. Trying to send a batch of emails with 
>PHP's mail()
>function takes so long, that the script expires and I get an 
>error message.
>
>I tried searching the archives of this list, but that search 
>page seems to
>be broken.
>
>Thanks!
>
>
>Matt Hillebrand
>[EMAIL PROTECTED]
>
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>-- 
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
My mail.medmarket.com server is actually a linux box at the same co-location
as my win2k web server. I called the ISP and am now using their mail server
that is 30 miles away from that co-location, and things have improved
dramatically.

Believe me, I'd like to use linux for this project of mine, but my boss
wants me to do it Windows first and then (maybe) make the switch to red hat.
Everything should transfer smoothly since I'm using Apache/MySQL/PHP, using
$DOCUMENT_ROOT and forward slashes everywhere, right?

Thanks.



Matt Hillebrand
Web Developer
[EMAIL PROTECTED]


-----Original Message-----
From: David M. Patterson at DPLH Enterprises
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 8:09 AM
To: Php-Windows-List; Svensson, B.A.T. (HKG)
Subject: RE: [PHP-WIN] mail() function EXTREMELY slow


I need to add my 2 cents worth here.
I use php to send email and use my ISP's SMTP server to do it.
And I still experience the slowness. The curious thing is that
I don't experience this slowness with any of the standard mail
clients when sending mail (Outlook, Eudora, etc.)

For whatever it's worth...

Dave

-----Original Message-----
From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 5:23 AM
To: 'Matt Hillebrand'
Cc: php-windows
Subject: RE: [PHP-WIN] mail() function EXTREMELY slow


Hand on your heart: Do you really believe that this is due to a slowness in
the mail() function of php?

It might, and is probably, related to your own network. For example: have
you check the ICMP traffic, to see if your network traffic is routed
correctly? You might have a router in the routing list that is a "wacko"
router, and that might causes sporadic network hangs, and disconnection's.

        /Anders


>-----Original Message-----
>From: Matt Hillebrand [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 27, 2002 12:27 AM
>To: [EMAIL PROTECTED]; php-windows
>Subject: RE: [PHP-WIN] mail() function EXTREMELY slow
>
>
>Yeah, I know about the max time variable, but it would be unacceptable to
>take over a minute or two to send a handful of emails!
>
>I read an article that said you could use your ISP's SMTP
>server for the
>mail() function, but that didn't seem to work.
>
>
>
>Matt Hillebrand
>Web Developer
>[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
>-----Original Message-----
>From: Ross Fleming [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 26, 2002 3:28 PM
>To: Matt Hillebrand; php-windows
>Subject: RE: [PHP-WIN] mail() function EXTREMELY slow
>
>
>I hope you're not spamming... ;)
>
>In php.ini:
>
>max_execution_time=30     ; Maximum execution time of each script, in
>seconds
>
>Change it to what you need.  The speed is pretty much
>dependent on your SMTP
>server though.
>
>Ross
>
>-----Original Message-----
>From: Matt Hillebrand [mailto:[EMAIL PROTECTED]]
>Sent: 26 February 2002 23:13
>To: php-windows
>Subject: [PHP-WIN] mail() function EXTREMELY slow
>
>
>I'm using the SMTP server that my company owns, but it takes
>forever just to
>send one email message. Trying to send a batch of emails with
>PHP's mail()
>function takes so long, that the script expires and I get an
>error message.
>
>I tried searching the archives of this list, but that search
>page seems to
>be broken.
>
>Thanks!
>
>
>Matt Hillebrand
>[EMAIL PROTECTED]
>
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
Every heard of anything transferring smoothly in the world of IT?... ;)

It should do though, but I guarantee you'll find something though!

R


>Everything should transfer smoothly since I'm using 
>Apache/MySQL/PHP, using
>$DOCUMENT_ROOT and forward slashes everywhere, right?

--- End Message ---
--- Begin Message ---
Hi
Im trying to use mail() function with PHP 4.02 under WIndows NT Server
and IIS
and I allways get Failed to connect
even though the SMPT server in php.ini is setup correctly
and i cna acces that server from webserver

doing the same thing on WIndows NT Workstation and apache (same version
of PHP) works.
is it something with that PHP version or there is something else i have
to take look at.

Thank You
Aris
--- End Message ---
--- Begin Message ---
Hi Aris,

> Im trying to use mail() function with PHP 4.02 under WIndows NT Server
> and IIS
> and I allways get Failed to connect
> even though the SMPT server in php.ini is setup correctly
> and i cna acces that server from webserver
> 
> doing the same thing on WIndows NT Workstation and apache (same version
> of PHP) works.
> is it something with that PHP version or there is something else i have
> to take look at.


Please post the section from php.ini (both of them, if you like).
Is the SMTP server on the same or a different box to the NT Server?
IMHO: best not to use the SMTP 'stub' in IIS - set the php.ini to go straight to 
wherever that points!

Please advise,
=dn


--- End Message ---
--- Begin Message ---
Aris,
Thanks for such a complete run-down. My comments/further questions are interposed:-

> SMTP = mail.server.com
> sendmail_from = [EMAIL PROTECTED]
> ;sendmail_path =

I can't see the mail server from 'outside', but the settings look right - when you 
can, let's look at the 'real
deal' though!

> this is how it stands on both of the mashines.
> SMTP server is not the same machine as webserver.
> And i can telnet to SMTP port from webserver without any problems
> (no need for authentication)

Good thinking!
To really put icing on the cake, how about using an email client/'native' SMTP - does 
the mail get through?
(if it's not, the email client doesn't *need* to be on the same box, but keep to same 
sub-net just in case)

> both the workstation (on which mail works) and server are on the smae
> network, only thing i dont know is how is php installed on the server
> is it cgi or IIS module, on the workstation it is as cgi (apache as
> server)
> IIS is version 4 and it is windows nt server

Neither SMTP nor PHP requires that the two be on the same 'network'. SMTP is an 
Internet-wide facility - as long
as the routing/name serving is in place... (which seems pretty much proven). From this 
box (192. class C
subnet), I point directly at my ISP's SMTP server (10. class A subnet)!

> phpinfo() shows that php is reading php.ini and takes the set value for
> SMTP so i guess it is setup like cgi(but im not sure).
>
> could it be due to the version of php (4.0.2) ?

On this box, I'm using PHP 4.0.6 under NTWS 4.0 SP6a, and have good service.

> > > Im trying to use mail() function with PHP 4.02 under WIndows NT Server
> > > and IIS
> > > and I allways get Failed to connect

Exactly how/where do you get this msg?
Worth posting that chunk of PHP code?

> > > even though the SMPT server in php.ini is setup correctly
> > > and i cna acces that server from webserver
> > >
> > > doing the same thing on WIndows NT Workstation and apache (same version
> > > of PHP) works.
> > > is it something with that PHP version or there is something else i have
> > > to take look at.
> >
> > Please post the section from php.ini (both of them, if you like).
> > Is the SMTP server on the same or a different box to the NT Server?
> > IMHO: best not to use the SMTP 'stub' in IIS - set the php.ini to go straight to 
>wherever that points!

Those are the major points to focus on.
Will look forward to hearing how you get on.
=dn

--- End Message ---
--- Begin Message ---
| I try to compile latest cvs with visual studio.net according to the
| instructions in the manual.
|
| I'm always getting the following linking error:

I found out myself:

If you install the Cygwin tools with the default configuration, bison and
flex are not installed, you have to add them separately (you can do that
with the cygwin setup tool).

If bison and flex are installed, php compiles.

Christoph


--- End Message ---
--- Begin Message ---
I want to be able to build for Windows on my own. I have Microsoft Visual
C++ 6.0 and run on Windows XP.

This is how I am doing it currently, but something is not working right:

First I build Apache (1.3 or 2) by opening up the dsw file and setting the
active project to InstallBin and clicking build.

Once that is done, I open php4ts.dsw and set the active configuration to
either php4apache or php4apache2 and set all the correct header, include and
library files for Apache in the config as well as the win32build/bindlib_w32
stuff. Then, I build that and get the php4apache(2).dll, php4ts.dll, etc and
use those for Apache.

For some reason, some functions seem to be missing when I do it this way
such as crypt. I can't figure out why. Am I doing something wrong? How
exactly do the guys at PHP.net build for Win32? Also, when I build it for
Apache2, if I run phpinfo(); twice, Apache2 crashes.

How do I build the extensions? None seem to have project files or some don't
have all of the source files.


Please help! Thanks!!
-Jobarr



--- End Message ---

Reply via email to