php-general Digest 19 Apr 2009 14:43:52 -0000 Issue 6075

Topics (messages 291661 through 291665):

Re: What is wrong with this code
        291661 by: 9el
        291662 by: Reese
        291663 by: Manuel Lemos

Soap Client Help
        291664 by: EPA WC

niewbie - call methods from another class
        291665 by: MEM

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 ---
But in practice. I mean in real life you'll find the mail() function is
disabled in most servers :)

--- End Message ---
--- Begin Message ---
9el wrote:
But in practice. I mean in real life you'll find the mail() function is
disabled in most servers :)

That's nice, but how many is "larger volumes of email"? 500? 5,000?
25,000?

I note PEAR:Mail has 3 open bugs, PEAR:Mail_Mime has 23 with 3 open
support requests. PHPMailer was mentioned earlier, it has 31 open
bugs (and someone noted that at least one was closed as "resolved"
even though it wasn't actually fixed).

So how many addresses can mail() safely handle?

Reese



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

9el wrote:
> *Note:* It is worth noting that the mail() function is not suitable for
> larger volumes of email in a loop. This function opens and closes an SMTP
> socket for each email, which is not very efficient.
> For the sending of large amounts of email, see the » PEAR::Mail, and »
> PEAR::Mail_Queue packages.
> *
> Note:* The following RFCs may be useful: » RFC 1896, » RFC 2045, » RFC 2046,
> » RFC 2047, » RFC 2048, » RFC 2049, and » RFC 2822.
> 
> Copy from PHP Manual.

The PHP manual is wrong. Using the mail function does not necessarily
make it open and close SMTP connections for every recipient. That is
true with PHP under Windows.

When you use sendmail or equivalent (Postfix, Qmail, etc..) on Linux
usually the message is just dropped in the queue and the mail server
takes it from there. PHP does not necessarily have to wait for the
message be delivered to the remote recipient via SMTP.

You may want to read a more complete explanation here:

http://www.phpclasses.org/blog/package/14/post/1-Sending-messages-to-many-recipients-via-SMTP-in-PHP.html


-- 

Regards,
Manuel Lemos

Find and post PHP jobs
http://www.phpclasses.org/jobs/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/


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

I am using the following code to build a SoapClient with some web service:

////////////////
<?php

ini_set("soap.wsdl_cache_enabled", "0");
ini_set('default_socket_timeout', 600);
$client = new 
SoapClient("http://iaspub.epa.gov/webservices/StationService/index.html?WSDL",array('trace'
=> 1));
try {
 $sc = $client->getStationCount(43.1,43.5,-83.5,-83.1);
 print $sc;
} catch (SoapFault $exception) {
   echo $exception;
}

?>
//////////////

But I got the following error:
///////////////
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing
WSDL: Unspecified encodingStyle in /var/www/myphp/wqxststest.php:5
Stack trace: #0 /var/www/myphp/wqxststest.php(5):
SoapClient->SoapClient('http://iaspub.e...', Array) #1 {main} thrown
in /var/www/myphp/wqxststest.php on line 5
///////////////

Also when I tried same code (See below) with another service, it seems
working fine.
///////////////
<?php
$huc = $_REQUEST['huc'];
ini_set("soap.wsdl_cache_enabled", "0");
ini_set('default_socket_timeout', 600);
$client = new 
SoapClient("http://iaspub.epa.gov/webservices/WatershedSummaryService/index.html?WSDL",array('trace'
=> 1));
try {
 $client->getCharacteristicSummary($huc);
 print $client->__getLastResponse();
} catch (SoapFault $exception) {
   echo $exception;
}
///////////////
?>

I tried to find what's causing this error on Google but no success.
Anyone know what's going on?

Your help is highly appreciated!

Tom

--- End Message ---
--- Begin Message ---
Hello, I have something like this:
 
$stmt = $this->_dbh->prepare("INSERT INTO DOG (name_dog, race_dog, id_vet)
VALUES (?, ?, ?)");
             
             $stmt->bindParam(1, $this->getNameDog() );
             $stmt->bindParam(2, $this->getRaceDog());
             $stmt->bindParam(3, ????????????????????);
             
              
             $stmt->execute();
       }
 
To make this insert function work, I need to fill the id_vet database column
with some values. 
I cannot use $this->getIdVet() because this method is not in dog class, is
on the veterinary class. 
So my question is:
How can I access the getIdVet() that is on the veterinary class to put it on
the insert dog method? 
 
 
Thanks a lot,
Márcio
 

--- End Message ---

Reply via email to