Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




Php Mailing List-> Performance


i wrote a php script that sends mail to a list of email generated from a database.
this database contains about 8000 email adresses and depending on what the users chose in their preferences it sends out mail accordingly. in general this would come down to roughly 6000 emails per list.

the script iterates through the list of email addresses and send out a new email to every email address found that fits the mailing type. the box doing this is an athlon 1400Mhz.

now, my question, how heavy will this be for sendmail? i can imagine that this will take some time before all 6000 emails have been send. php is set in the ini to time out after 30 seconds and maybe this script will be running for longer than that with 6000 emails to send. i could test this but i dont think all of those people would be very happy receiving test emails.

also, i could send just one mail with all those email addresses stuffed into the Bcc header but i dont know if that would make difference and if the php mail() function likes 6000 mail addresses in the Bcc header. anyone with experience with sending large volumes of mail like this have some advice for me?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Mailing List Manager, Send To List
I'm looking for a mailing list script (php) that has a function to let
users to reach out to all recipient on the list by simple send the
email to a specific maillist- address.

Mailman has this functionn but as a just got a webserver account I
can't use mailman nor install it.

Php Mailing List
Can anyone point me to a php script that stores email addresses into a
txt file?

The purpose for this is for a mailing list, ideally if a user wanted to
unsubscribe the email would be removed from the text file.

Php Mailing List
Is it possible to implement a mailing list using PHP?. I know I could
maintain a list of emails addresses in a db and send mail to them through my
website, but how can I get true mailing list behaviour where emails are sent
to a particular address (like mailinglist@mydomain.com) and then distributed
to all of the email addresses?.

PHP For A Mailing List
I' trying to develop a mailing list system in php and mysql.

Mailing List
I want to create a mailing list for my website but i have never done this before, I searched on google and all i found was free mailing lists but when a user subscribes, it takes them to the website that provides the free mailing list and it has an ad for them when i send out an email, can anyone help me create my own mailing list?

Mailing List
i insert the emails and their names so i can do it lik 'Hi {name}, wehave a great new product.. etc' OK but how do i send an email to he all the emails in the rows, using mail()?

Mailing List
I am making a simple mailing list, and i have created a form which adds a persons email to a php document. I'm not sure about how i woould remove an email from the php document though? Any ideas?

Mailing List
I am really interested in putting a mailing list on my website. I have only just discovered php and mysql and I found a program called php list on my cPanel X control panel on my website.

I would like to put a text box on my navigation bar that has inside it "enter your e-mail" (when they click this disappears) and a button on the right of that which says "join" (I will have a jpg underneath this text box saying "Mailing List").

When someone clicks on "join" I would like them to get sent to a page with the e-mail address field filled out in the right table with what the address they entered in the navigation pane, along with a name field they can fill out and a Submit button.

I have seen these on many websites so I assume it is not that hard to do, but I am pretty lost as to how everything is connected (the database (mysql?) and the php list program).

I assume when they click submit it will send their details to a mysql database / send them a confirmation e-mail.

I was wondering what code I will need to make this system work, as I have been reading and googling and I am quite lost as to the mechanics of how it all works.

PHP Mailing List Problem
Here's the problem: I've been trying to send to my mailing list using a PHP script, but the page that executes the send times out before the script can actually send to everyone on the list; only about the first half gets sent to.. Is there any possible way around this or to stop the browser from timing out?

Writing Mailing List In PHP?
what's the best way to write a simple mailing list program? If one tries to send email to over 600 addresses using mail(), a usual script will most likely timeout.

So, the question is, what's the best way to sendout email to over 600 ppl?

Php Mailing List Operation
I'm using the mail() function to send out newsletters to subscribers,
problem is that it seems a little unreliable...
at the moment I assemble the mail outside a loop then iterate through
all the mail addresses
for($i=0;$i<$numaddresses;$i++){
mail($to[$i],$subj,$message,$fromstr);
}
should i be putting in a delay message or a retry_on_fail method or
anything?

Subscription Mailing List
Im building my first php site and what im looking for is a simple
tutuorial / example of a form which allows users to enter their email
address, which is stored in my Mysql db.

Also need to know how to go about mailing everyone who subscribes to
my news letter.

I know its probably quite simple, but i'd like to check for duplicate
email addresses, verify email addresses (dont know if that possible)
and allow them to un-subcribe.

Mailing List Using MySQL / PHP
I have written a database which uses PHP to run through each ID in the
database and then generate a persons name and address to include into the
rest of the PHP to send an email out.

But as people have deleted or updated their details on this mailing list, I
now have "holes" in database. Ordinarily not a problem, but the code I've
written starts at ID 1 and after sending an email increments to the next
ID. But when it encounters a now vacant ID, it sends an error email to me
associated with that now blank ID row of data.

How can I change my code that will increment through all the results in
turn, but not give me these error emails when people have amended the
database?

Mailing List Script
Where I can find siple mailing list written in php and mysql ?

Timeout Mailing List?
i heave a mailing list with just over 700 people on it. on page one i have a form for newsletter to be typed in, then the person submits the form and the next page has the php to send out the newsletter to all the email addresses in the database.

my problem is that the page times out and an connection error occurs, so i don't think everyone in the list gets emailed. how do i get around this problem?

Php Mailing List Script
I need a php mailing list script, can anyone recommend one? preferably OS if possible.

Dynamic Mailing List?
I have a schedule of people that need reminders sent to them weekly.  I have figured out how to set a Crontab to send the reminder automatically ... but the people are not the same every week.  I know that I could build multiple scripts and hard code the email addresses, setting a cron job for each - but is there any way to build ONE script that will read a text file based on the date and pull the names/email addresses off of that? 

Making A Mailing List
I have tons of members on my website, and I want to e-mail them all, but I do not want add all their names to a address book or e-mail them individually.

So I was wondering after I flush(Erase) the database, when the user register the "script" will auto adds them to a mailing list, so I can download the mailing list and add it to my address book and e-mail them all at once.

If there is a script already out there, can I have it?

Key Code Generation For Mailing List
I want to send a unique url to each member of my mailing list for mailing list removal purposes. I see this done all the time, but I'm not sure how they do it. I want the user to click on the link at the bottom of their email, which takes them to a page where they confirm there removal from the list.

It doen't have to be super secure, its just a personal site, I just don't want idiots going in and guessing random addressess trying to get them removed from the list.

Remove From Mailing List Via Variables In URL
i have often joined other mailing lists and i notice that when emails are sent out there is usually an option to delete your email from the mailing list.

i was wondering which is the best way to go about this. would it be a matter of sending a link in the email which is something like...

http://wwwmysite.com/deletemail.php?somebody@somewhere.com

deletemail.php being a simple script that takes that email addy and deletes it from the database? or is there a better way to do it?

Duplicate Mail When I Send A Mailing-list
I use mysql and the function mall to send a mailing-list. When I execute my script, certain person receives two or more identical messages. I think that the problem is in the server smtp which does not manage to send all the messages at the same time.

Adding A Mailing List To Vbulletin Registration
I have added yes and no buttons to an option called bsmailinglist in the form for registration on my forums. Now I want to have that answer handled according to the following code. I have the yes button set to TRUE and the no button set to FALSE. After adding the folloing code to the script that handles the form (register.php), I get a parse error on the last line of php, the closing php flag. Code:

function BSwrite ($email) {
$BSfile = "bsmailinglist.txt";
$BSopen = fopen ($BSfile, "a");
if ($BSopen) {
fwrite ($BSopen, "$bsmailinglist, ");
fclose ($BSopen);
} // end BSwrite Function
if ($bsmailinglist) {
BSwrite();
}

Is It Very Difficult To Setup A Simple Mailing List?
I've seen and been on mailing lists where there are a bunch of people on it, but, when you reply to "the list" you are actually replying to something like, "mailinglist@widgets.com". So I want to setup something like this for a special project. I'm imagining that when the server gets an email to "mailinglist" that it would basically just re-send the message to everyone on the list.

Is this very difficult or even advisable using PHP's mail function?

Is There Any Open Source Mailing List Manager That Works Good
I am searching for a good open source php mailing list manager for some days. can any one suggest me one please.

Php Sending Mails To Mailing List Show Strange Headers
i need to send a mail to one mailing list address.when i sent to this the from address comes as newsletter-request@abc.com; on behalf of; ABC[abc@abc.com]
where newsletter@abc.com is the mailing list id abc@abc.com is the moderator id

when i change the to address to any other email address other than this mailing list, the from field works fine. i have given the mailing list, in the Bcc header.

List Contents Of A Folder, Make List Of Links
Does anyone know how I can write a script that:

- reads in all the files in a particular directory
- displays the file names in a html list and makes a link of them:
<ul>
<li><a href="filelocation1">filename 1</li>
<li><a href="filelocation2">filename 1</li>
<li><a href="filelocation3">filename 1</li>
</ul>

etc.?

So basically it creates a list of links with the contents in that directory,
so you can download them from there.

Get List Of Messages From One Table, Message List Indicator From
I have two tables. One has a list of messages left by users using fields named mbxno for the mailbox and msgno for the message number. I have another table that has mailbox settings for each user that contains a field named "messagelist" to indicate if they want to be included on the message list or not.

What I'm trying to create is a list of the most-recent messages with a lookup on the users table to indicate whether a message in the list should be included in the message list based on the user's mailbox settings.

SELECT messages.msgno, messages.mbxno, users.messagelist FROM messages, users WHERE (users.messagelist = &#391;') ORDER BY msgno DESC LIMIT 100

What I'm getting, though is a list that looks like this:

mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 1114 msgno: 0412141623 msglist: 1

I think what's happening is that I'm using the wrong type of join and more rows are being created than necessary.

If I add "DISTINCT" to the query, I get a list of the most-recent messages as I expect, but the "messsagelist" value is sometimes wrong (again, probably because the data is getting jumbled). For example, the messagelist value for the second row (2214) should be 0, not 1.

mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 2214 msgno: 0412141622 msglist: 1
mbxno: 2189 msgno: 0412141408 msglist: 1
mbxno: 0000 msgno: 0412141213 msglist: 1
mbxno: 0003 msgno: 0412141213 msglist: 1
mbxno: 2265 msgno: 0412132029 msglist: 1
mbxno: 0000 msgno: 0412131950 msglist: 1

How should I be doing this? If nothing else, what kind of join will work with a long list compared to a value from a short list?

Populating A List Box Or A Dropdown List Using Php And Odbc
I need to populate a list box and/or a dropdown list on a form. I have all
the bits and pieces together, all bar the code which takes the result of a
query and creates a list box.

Bad Performance With Php 5.2.0
I'm running OmniHTTPd/2.10 with php on a Win2k SP4 machine with various php applications (for example phpMyAdmin and cacti).

Until now I was using php 5.0.4 without problems. I updated to php 5.2.0 and now all the php applications are running *very* slow. A cacti page with some graphs on it took 16 sec to show up completly with php 5.0.4 now takes 50 sec
with php 5.2.0. Same with other php scipts.

I monitored php with the taskman. With php 5.0.4 some php-cgi.exe show up, using up to 99% cpu never going to 0%. With php 5.2.0 the same php-cgi.exe show up, but using only 30% to 40% cpu, dropping periodically to 0% cpu, then back to 30%, then back to 0% and so on.

IIS PHP Performance
I have IIS 5.0 Windows 2K SPs and patches sitting on a dual P3 1000
Mhz. box with RAID.

When I do a stress test with MS IIS web stress tool, system cannot
handle more than 50 request / sec. On the other hand asp has no
problem with 5 - 10 times more.

To test it further more I tried to determine where the most of cycle
spent I came to a conclusion that it is actually not the parsing and
running of the script but loading the php module. I tried the same
test with an empty php file results are almost the same which suggests
I think, only thing done is php module is loaded.

I suppose the libraries are being loaded and disposed so much, so it
has something to do something with caching.

Performance Hit With OOP?
I found myself writing the following comment in the overall
constructor comment for the class McLoops. And when I got done writing
this comment, I began to wonder, damn, at what point does the
performance hit become too expensive to scale? Does anyone have any
stats on this? How many calls to a database can you have on one page
before that page becomes painfully slow? How many hits does it take to
slow a plain html file versus a simply included() PHP file versus a
system like Smarty? How many lines of code does Phorum execute to
render a forum with 200 entries in it?

Does anyone know where such statistics can be found?

* It's worth noting where McLoops fits into the picture. Please
consider the complete history
* of a single function: showLinkArea(). These are the events:
*
* 01. showLinkArea() is encountered in a template and executed
* 02. showLinkArea() sends McControllerForAll the string
"showLinkArea"
* 03. McControllerForAll sends "showLinkArea" to McRunCommand
* 04. McRunCommand calls up CommandShowLinkArea and calls test()
* 05. If test() returns true then McRunCommand calls the
command() method of CommandShowLinkArea
* 06. CommandShowLinkArea calls for an arrangement called
"showLinkArea"
* 07. showLinkArea.php, the arragement, in default form calls
elementsPublicListAllForLinkArea()
* 08. elementsPublicListAllForLinkArea(), calls up McLoops and
runs through it.
* 09. elementsPublicListAllForLinkArea(), sets "SeekArrangement"
as the action object for McLoop
* 10. McLoops loads ActionsSeekArrangement and calls its 4 action
methods
* 11. ActionsSeekArrangement loads many arrangments to output the
various aspects of the link area
* 12. ActionsSeekArrangement, by calling other arrangements,
probably causes dozens of element() functions to be called.
* 13. Those element() functions in turn call many other objects.

Mind you, this is one function. There might be 20 functions in a
template. Or more.

PHP IIS Performance
I have IIS 5.0 Windows 2K SPs and patches sitting on a dual P3 1000
Mhz. box with RAID.

When I do a stress test with MS IIS web stress tool, system cannot
handle more than 50 request / sec. On the other hand asp has no
problem with 5 - 10 times more.

To test it further more I tried to determine where the most of cycle
spent I came to a conclusion that it is actually not the parsing and
running of the script but loading the php module. I tried the same
test with an empty php file results are almost the same which suggests
I think, only thing done is php module is loaded.

I suppose the libraries are being loaded and disposed so much, so it
has something to do something with caching.

Being a big fan of open source community I was dissappointed with
that.

So am I right that
- This is related to initialization of php for each request?
- Is there a way to cache php?

For Loop Performance
Is a difference in performance between the two following for loops?

Measuring Performance Of PHP
I'm writing PHP Web sites that are database driven with mysql.

I'm looking for ways to measure the performance (speed) of my php code, so
that I can find ways to write the fastest php code. Any suggestions?

Mail() Performance
Someone can tell me why the mail() function is slowly, when sending 500 email (looping a mysql table)? Note = I am using Apache Web Server under Win98... is this the problem????

Java Performance With PHP
Does anyone out there know what generally how performance issues are affected when you use Java objects with php scripts?

Php & Ms Sql Server Performance
I have a local database in MSSQL server and I am given a task to develop a system to input and retrive data from the database and generate various kind of reports. Its a subscriber's databse and may range till 100K.

I am very good with PHP and mysql but since I had to build a local application i thought of going for VB.

I dont know VB and will have to learn it first. I wanted to give PHP a try and bulid the local application which can also be used on the intranet. I have a windows 2K, apache, php and ms sql setup.

Is it possible to develop a system which can handle long running processes like imports and exports with such a database? Can i use sessions successfully on the intranet to give restricted access to users?

The main thing is how compatible is php with mssql server. Will the performance be good or i should go for an application in VB?

Performance Inquiry
Imagine three options:

a) There is an XML file. A PHP5 script loads it and puts it into a DOM
document object. Then, given an input string, a function looks via XPath
for a node with that name (or possibly value of an attribute) and returns
the node's content.

b) There is a text file containing a serialized array. PHP script opens it
and deserializes the array into a variable; then, given an input string,
looks for an array element with the same key and returns the element's
value.

c) There is a PHP file containing just a definition for an array. PHP
script includes it and, given an input string, looks for an array element
with the same key and returns the element's value.

Does anyone have any idea which option would be the fastest, and which the
slowest of the three?

Performance Comparisons?
Has anyone done any performance comparisons between what one might
call the 'program' vs 'interjection' models?

What I'm calling the 'program' model is putting a '<?php' invocation
at the top of the page, a '?>' exit at the bottom, and doing all the
html output via echo statements.

The 'interjection' model, in contrast, repeatedly invokes php for
minimal periods instead, so instead of one mass of php code, the same
amount of code is in smaller pieces and laced in and out of the html.

The interpreter must look at everything regardless, but I'm wondering
whether there's significantly more overhead one way than the other.
From the fact that 'echo' isn't actually a function, my guess is that
the overhead might be a wash, but does anyone know of any actual
performance tests?

Performance MySQL 5.0.11
Using LIMIT on large tables slows Queries down to a crawl when using
like comparisons (I understand that there is a fix in the beta
release) but what I am wondering is whether you all think that there is
a problem in returning a record set of say 10,000 rows and using a
foreach loop to display just a few of them) ie doing the limiting
within the PHP realm?

Ps I am offline for a few days so if I dont reply to the thread it is
not out o rudeness ;-)

Templates = Better Performance?
I'm working on a web site that has a common header,navigation links, and footer.

I'm thinking of just writing 3 funtions:
function header()
function navigation()
function footer ()

and saving them on a common file (something like functions.php)

Then calling the functions in each page?

Will this affect how fast the web page loads?
Will it take longer for the page to load since it has to get part of the page from another file (functions.php)?

I've read a lot of stuff on templates (www.phpbuilder.com), but I think just using functions will work fine for me since I'm not expecting to do anything too fancy with the page.

Performance When Using Php And Mysql
Can somebody tell my something about performances when using mysql and php!
Where i can find document about this performance?
How php and mysql behave in use of multiple connections?

Include() And Performance
Say I have a file functions.php that contains many functions, and in a script abc.php I have this statement: include("functions.php");

abc.php uses only one function from functions.php. Is php interpreter still parsing all other unnecessary functions in functions.php? If yes, then the bigger functions.php the poorer the performance.

Performance With Include()
Can I use include() to insert huge library files in my php programs ? Will
it be efficient enough even if I do it in every single program ?

Improving Performance....
I am parsing out some words and dumping them into a database using the below code. The way I have it now, we're executing an insert on the database for each word (everytime it loops through strtok). I know that in sql I could just build the query using a new line () and then execute the SQL once after the loop...but I can't seem to find a similar way of getting it to work in MySQL. Is it somehow possible or could someone point me in the right direction. Code:

Testing Performance For Php Pages
Somebody knows a free tool to test how many simultaneous requests a page can be served without a timeout?

Performance => Less Diskaccess / Db Access
Got another question for ya'll. Considering the following:

We are building a complex parser for documents and store the results in a mysql (for now anyway) db. There the problem arrises.

In the db we store a table with word information (lexicon) with wordID and word. While parsing documents we check every word in the document with the database (word for word) to change words into wordid's for storage.

The lexicon holds over 22 million words (indexed for first 10 characters).

Parsing causes a enormous load on the db with checking for wordID's and takes too long (2-4 sec per doc) due to diskaccess and a db which is on overload (almost).

We are currently looking for ways to increase parse-speed, decrease diskaccess (time consuming) and db load (also time consuming and causes the machineperformance to get too low).

I was thinking about ways to load the entire lexicon into memory (the fastest I guess) and let the phpscript check for wordID's from there (dunno if that is even possible).

The parsescript BTW is run from a browser.

Performance, Functions And Looping
Has anyone benchmarked the overhead of calling functions in PHP? As an example, let's say I have a function that takes a string as an argument. If this string is zero length, I want to return an empty string right away. Would I gain any time if I put the zero length test before calling the function?

Email Performance Question...
I have a db with a list of approx. 300 users. I would like create a script to send them email notices, ie: create one email and send to the list. Is this feasible in PHP using the mail( ) function in a loop? Any suggestions on mass mailing your users using php?


Copyright © 2005-08 www.BigResource.com, All rights reserved