Forum Moderators: coopster
1st, can we use PHP for maintaining mailing-lists. Say, we've 1000 users, need be e-mailed a subscription newsletter i.e. $message is same, loop through e-mail array in db.
2nd, Web site search. We maintain database after reading files using PHP and manipulate results from db.
Question is, if PHP is a solution for these problems, also, when users' ( 1 ), keywords' ( 2 ) dbs grow big! There is also a limit of a PHP script execution. In 1st case, PHP has to parse, suppose 10k subscribers, and generate 10k e-mail for sendmail program.
Is PHP feasible for such things.
What else, is a better and professionally used solution.
I don't know CGI? Perl?
Please discuss.
But if you need to send a 'personalised' email to each user then you might have problems with your mail server clogging up and PHP timing out - in that case I'd look at using a third-party site.
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.
Resouce: mail() [php.net]
Granted, you could roll your own code to open the socket, etc., but this a case where the PEAR classes come in handy as the legwork has already been done for you.
If PHP PEAR::mail is same efficient as .cgi script, it's fine to use it. So, I assume call to such PHP script will generate 10k e-mail for sendmail program to parse!? Please tell how to e-mail ( test ) using PEAR on localhost/IIS.
My phpinfo() is showing
Configuration
PHP Core
include_path .;c:\php4\pear .;c:\php4\pear
I fear, PEAR is not configured properly.
PHPList is also a pouplar readymade solution, but I write custom script myself. Thanx.
[pear.php.net...]
If a PHP script generate 10k e-mail for sendmail program; it'll be really a nonsense or it may not be permitted by Web host provider. So, we may need generate e-mail in batches; how? Also can someone tell the trick to send mail attachments.
2nd question remains unanswered: If Web site search can be done using PHP file-system functions and a db.
Answers will add to the benefit of all members :);)
One question, I've is what is meant by PEAR installation. If it is all about includes and requires of class definitions. What'll it mean on remote server ( shared hosting; shared PHP installation )? include_path for my remote server is
.:/usr/lib/php:/usr/local/lib/php There is no PEAR directory, I see; I'm little confused.
I think I've upload MAIL & MAIL_QUEUE packages to public_html; so that I can use PEAR! Then what's is PEAR installation all about?