php-general Digest 18 Apr 2009 17:50:39 -0000 Issue 6074
php-general Digest 18 Apr 2009 17:50:39 - Issue 6074 Topics (messages 291659 through 291660): Re: Setting Up A Directory For HTTPS Secure Certificate 291659 by: Michael A. Peters Re: What is wrong with this code 291660 by: Reese Administrivia: To subscribe to the digest, e-mail: php-general-digest-subscr...@lists.php.net To unsubscribe from the digest, e-mail: php-general-digest-unsubscr...@lists.php.net To post to the list, e-mail: php-gene...@lists.php.net -- ---BeginMessage--- revDAVE wrote: GOAL : no one will be able to get to HTTPS directory VIA HTTP. So I make this little tester page that seems to work Later I'll add auto redirect Is this the kind of thing to add to various pages? Is there a better way to do this? I do a separate document root for secure content, and use a separate sub domain (though that isn't required). They way only content in the secure document root is served via https and content outside the secure domain never is served via https. I do listen on port 80 of the secure subdomain - but it forwards to the http site: VirtualHost *:80 ServerName secure.shastaherps.org RewriteEngine On RewriteRule ^(.*)$ http://www.shastaherps.org/ [R] /VirtualHost ---End Message--- ---BeginMessage--- 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. How is larger volumes of email defined where mail() is concerned? Is a number specified anywhere? I didn't see one on the manual page for mail(). Reese ---End Message---
Re: [PHP] What is wrong with this code
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. How is larger volumes of email defined where mail() is concerned? Is a number specified anywhere? I didn't see one on the manual page for mail(). Reese -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] What is wrong with this code
But in practice. I mean in real life you'll find the mail() function is disabled in most servers :)
Re: [PHP] What is wrong with this code
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] What is wrong with this code
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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Soap Client Help
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php