[PHP] More info on BCC? (was Re: [PHP] Sending Broadcast Email - will a large loop cause a crash?)
What's the reasoning behind that number? (330-) I'm about to implement something similar, using BCC (since the emails don't need to be personalized). I've searched in the past for the answers to 2 questions, but haven't had any luck. Can you shed any light on the issue? 1. Is there a limit on the number of BCC recipients that can be included? (Is this where you got the 330 number?) If so, what is it, and if not, what is a reasonable number to include in a single email (1000, 1, 10, etc) 2. Is it possible, using BCC from a mail() function in PHP, to accidentally reveal the list of recipients to anyone who receives the email? Thanks, Andrew Elliston On Thursday, September 6, 2001, at 04:35 PM, Miles Thompson wrote: Well, try it - find a willing victim and just do a simple loop. Alternately, set up an account with a local, high-bandwidth ISP, batch in groups of 330-, and use BCC. Miles At 04:16 PM 9/6/01 -0700, Fotwun wrote: Hi, I need to send a broadcast email to our customers (about 3,000 emails). The data is being drawn for the DB, and will be personalized. Obviously, the code to do this is only a few lines. However, I am concerned with the load it will put on the system trying to loop through and mail() 3,000+ times. Because of the overhead I anticipate this will cause the server, I am planning to do it late in the evening. -- PHP General 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]
[PHP] sessions broken when redirected?
I've searched the archives and relevant web sites to no avail, so as a last resort I'm turning to this knowledgeable group of people. I'm working to set up a user authentication system using native PHP 4 sessions on a box running Apache, mod_perl, mod_ssl, PHP (the lastest), etc. PHP was compiled with the following options: './configure' '--with-sybase-ct=/usr/local/freetds' '--with-config-file-path=/usr/local/lib' '--with- apache=../apache_1.3.19' '--enable-track-vars' '--enable-memory- limit=yes' Here's the problem: The browser is redirected by Apache (in the current setup, which for other reasons won't be changed) from a URL like http://somebody.com/foo/bar to a URL like https://somebody.com/bar. I have had no luck getting sessions, session ids, HTTP_POST_VARS, etc to successfully survive the redirect when the user moves between pages in the site. (passing variables through the url works, but we need something more secure than that). My feeling is that I'm missing something obvious. Cookies are enabled and working. I can start sessions and store variables, but only within one page. Once the user goes through a redirect (to the same server), everything is lost. It doesn't _seem_ like this should be a limitation of PHP, but maybe it is. Can anyone help clarify this? Thanks, Andrew Elliston -- PHP General 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]
Re: [PHP] setting Check box
Try setting up your code so that the following is the result: input type="checkbox" name="avail" checked or input type="checkbox" name="avail" Andrew Elliston On Monday, March 26, 2001, at 11:54 PM, Peter Houchin wrote: Hiya can some one pls let me know if i am on the right track pls, this is in a form that updates if there is an id else it inserts, now what i want it if there is an id i want the check box to be either checked or unchecked depending on the 'y' / 'n' value in the db input type="checkbox" name="avail" value="" ? if ($avail == 'n') { echo 'SELECTED '; }?" Peter Houchin Try CHECKED for checkboxes - SELECTED works for dropdowns. ok I've changed it the SELECT to CHECKED but it had no effect ... input type="checkbox" name="avail" value="" ? if ($avail == 'n') { echo 'CHECKED'; }? I've also tried it with a "n" value so it reads like input type="checkbox" name="avail" value="n" ? if ($avail == 'n') { echo 'CHECKED'; }? but that didn't have any luck either ... is there anything else i can do? Peter -- PHP General 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]