RE: Re: [PHP] Mass Mailing with PHP MySQL
I had an idea myself to do this. But I've held off because I want to do something rather robust but still flexible. I was going to use a database table.. with the fields.. to.. from.. subject.. body.. etc I was then going to have a cron task that ran every so often grabbing the records 1000-2000 at a time and sending them... if the script timed out the queue would still be there next time it ran. Would this be a good solution for a heavy amount of emails? The benefit I guess is I can use any language I like to read the database and send the emails but still queue it up with php or any other language. I could even add a date time field to send emails at a certain time as well. I think it would also free the user up faster as the records could be added to the database with Insert delay. The series of inserts would be done and the user can forget about it. A simple admin page with a Count query could monitor the queues progress. Am I on the right track? any ideas additions? Cheers Brendon -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 3:09 PM To: [EMAIL PROTECTED] Subject: Fwd: Re: [PHP] Mass Mailing with PHP MySQL - Forwarded message from [EMAIL PROTECTED] - Date: Sun, 19 Jan 2003 22:07:34 -0700 From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Subject: Re: [PHP] Mass Mailing with PHP MySQL To: Justin French [EMAIL PROTECTED] Is Peter McNulty out there anywhere? Don't have a lot of experience with mailing scripts, but I use the one found at codingclick.com Anyone else? RW Quoting Justin French [EMAIL PROTECTED]: ### A while() loop will, at some point, break. this is because the script ### will ### timeout on the server before you send to any large lists... when I say ### large, this could be 100 address', or could be 10,000 -- it all depends ### on ### your server/ISP and server load at certain times. ### ### A better/simpler solution would be to build a Bcc header field using the ### while loop, then only send ONE email to 1000's of email address' via the ### Bcc ### field, just like you would from Outlook. ### ### BUT, your host may impose restrictions on how many emails you can send in ### one Bcc... my host has a limit of 100. ### ### So, I tend to send a few emails of 50-ish people per email to my list, ### balancing the two above issues. ### ### ### There are also some simple/complex classes on phpclasses.org (esp the one ### by ### manuel lemmos) which can overcome both these problems, with various ### methods. ### ### I haven't used them yet, basically because I don't see the need yet, ### given ### my small lists. ### ### ### Justin ### ### ### ### ### ### ### ### ### ### on 20/01/03 3:21 PM, Tim Thorburn ([EMAIL PROTECTED]) wrote: ### ### Hi, ### ### I'm working on a mailing solution for a client. His site collects ### email ### address from a 'Send this site to a friend' page (user enters their ### email ### address and up to 10 other addresses - a message is then sent to the 10 ### addresses from the users own email address). The addresses are then ### stored ### in a MySQL database - a column for the users email address, and then a ### column each for the additional 10 addresses. ### ### Now the client would like to have the ability to send an email to all ### addresses collected at once - to inform the addresses of a sale, etc. ### I'm ### guessing for this to be done, I'd have to select all the DISTINCT email ### addresses from the 11 columns (users email, and the 10 addresses), then ### use ### a loop to send the mail out. ### ### I had planned on using PHP's mail() function - does anyone know of any ### limitations imposed by this method? Normally, I'd contact the ISP and ### ask ### them directly, however it's been several weeks since they've answered ### the ### phones. ### ### Does anyone have any other/better options that I should pursue? This ### will ### be my first mass mailing typed job so I'm not really sure where to begin ### or ### if I'm on the right path at all. ### ### Thanks ### -Tim ### ### ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### - End forwarded message - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] I'm in need of a PHP web host recommendation
ProHosters http://www.prohosters.com Good plans, Good Price, Great Support. I recommend the semi dedicated plans. Cheers Brendon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Unusual HTTP header control
Not that I've ever used them but wouldn't Sockets be a good place to start? Cheers Brendon -Original Message- From: Morgan Hughes [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 17, 2002 4:40 PM To: PHP General List Subject: [PHP] Unusual HTTP header control Hello list, I'm hoping someone can shed some light on a problem I'm having with the header() function... I'm building a script to spool MP3 files to Winamp/xmms using the HTTP protocol. And it works fine, except I want to suppress the normal HTTP/1.1 200 OK header sent by PHP/Apache and instead send ICY 200 OK, to fool the player into thinking it's listening to a ShoutCast server... Does anyone know how to do this? The docs on header() don't mention it, nor do the user notes... Any ideas? Thanks! -- Morgan Hughes C programmer and highly caffeinated mammal. [EMAIL PROTECTED] ICQ: 79293356 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Help with project
*slaps head* *screams* feel better now *gets back to work* Cheers Brendon -Original Message- From: Karl James [mailto:karl.james;verizon.net] Sent: Thursday, November 14, 2002 3:41 AM To: [EMAIL PROTECTED] Subject: [PHP] Help with project Hello people Im doing the fantasy football project I have created a form for my owners to register there username and passwords So that it gets added to the dbase. My question is what should be my next part? Make a login page if so I would need help with that and wonder if there is anyone Out there that can help me. Then from there, once you log in it will take you to your team action page Where you can add/delete trade players. I need help with interface and login script as well.pleas email me. Karl. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] refresh
http://www.google.com/search?q=meta+refresh+html+code Google is your friend. Cheers Brendon -Original Message- From: Shaun [mailto:johan;novtel.co.za] Sent: Monday, November 11, 2002 9:24 PM To: [EMAIL PROTECTED] Subject: [PHP] refresh hi, How do you refresh a page in php? If i cannot wat is the code or meta(i think) to do so? Thanks Shaun -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How good is PHP to ASP?
I've noticed this question a fair bit, having to convince clients and employers of a technology.. DO you guys really have that much trouble selling php?? I tend to leave the development environment out of conversations all together and talk product features, scalability, promotion etc I do this with both the PHP and ASP projects I build. If you really need to convince someone then there the kind of person people who would really only need a name to associate things to. This list was posted a few days ago... This list is designed to convice teh boss (no type-o). If your boss is a bandwagon kind of guy, afraid to take risks, this is for you- er- him. And you. Him in that he can read it, you in that if he accepts LAMP, you're life will be a much more joyous existance ;) - Apache: By far the most popular web server, with 60.54% market share. Its closest competitor, Microsoft's IIS, has 28.89%. If all variants of each server are counted, Apache's install base increases to 62.17%, while IIS manages 29.42%). Statistics are from http://www.netcraft.net/survey Apache users: Yahoo! Amazon.com AltaVista BBC mp3.com SlashDot HP W3C IBM Verizon FEMA Infoseek PHP: In April 2002, PHP overtook ASP as the #1 server-side scripting language on the internet. In April, PHP was used by 24% of the sites on the Internet. Over the past two years PHP has averaged a 6.5% monthly growth rate. Source: zend.com/news/zendpr.php?id=49 PHP users: Cisco CMG Vodafone Motorola Siemens Ericsson CBS Unilever Philips BMC NTT Air Canada Lufthansa OnVista Lycos Europe Deutsche Bank NASA W3C MySQL: It isn't as easy to determine which database a site uses, but here is a list of sites that do use MySQL, according to MySQL.com: Yahoo! Finance Texas Instruments U.S. Census Bureau NASA Omaha Steaks Slashdot Cross Media Marketing Corp Powell's Books Department of Academic Information Systems Avacom Net Services Blue World Communications CoreSense Ericsson handy.de mobile.de Nemo-Q Silicon Storage Technology, Inc. Virage Linux: I can't find a list for this... I figured these out by trying big sites that came to mind. I didn't encounter a single Microsoft site, but I did get a few *BSD sites, and several Solaris sites. FBI Google Amazon AltaVista Slashdot Verizon FEMA CNN Security: Here's a list of security companies/groups that run any LAMP component: Security Focus(LA) Symantec (L) CERT (LA) Packet Storm (A) FBI (L) OSVDB (LA) At Stake (LA) Netcraft (LA) TESO (L) Phenoelit (LA) Doxpara (LAP) NGS Software (LAMP) PivX (LAP) Grey Magic(LAMP) Phrack(AP) *** -Original Message- From: Wee Keat [Amorphosium] [mailto:weekeat;amorphosium.com] Sent: Monday, November 11, 2002 11:42 AM To: PHP [General] Subject: [PHP] How good is PHP to ASP? Hi all, I'm not too sure if this is the right place to get my answers but I really need to know this: How can I convince my clients that PHP is really good? I mean not a lot of non-programmers have heard of PHP language. Most of them only heard of things like C/C++, ASP and the like. So, how can I prove to them that PHP is a much better language to use? Can anyone point me to the right resources for me to show and prove to my clients? Thanks a lot and sorry if this is the wrong place to ask this question. Yours, Wee Keat Chin --- Don't find a fault; find a remedy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Convince teh boss
In the end it think comes down to use what you know best.. Php vs ASp vs JSp vs .Net consider your budget, clients needs, bosses needs, future needs etc. I came to Php as .Net came in. I really like Php, i also really like ASP. I learnt ASP first because my job required it, we had a IIS server already. There all just tools to me, used to implement the best solutions for myself or my clients in minimal time for minimal cost. You mind find convincing your boss with $$$ easier. Then again i know what you mean about Bandwagon Bosses and there fellow MBM (management by magazine)types. Cheers Brendon -Original Message- From: John Nichel [mailto:jnichel;by-tor.com] Sent: Thursday, November 07, 2002 5:59 PM To: Evan Nemerson Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Convince teh boss Nice list. I might be able to put it to work for me. BTW, if you want, you can add my site as a LAMP site (of course, as small as it is compared to the sites you have listed, you may not want too :) http://www.by-tor.com Evan Nemerson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Okay, it took me a long (expletive deleted) time, so I figured I should share. Here is a list of popular web sites running Apache, PHP, MySQL, and Linux. If there are any errors, I apologize. This is not meant to be a definitive work. In fact, I wasn't even planning on posting it... until i looked at the clock ;) This list is designed to convice teh boss (no type-o). If your boss is a bandwagon kind of guy, afraid to take risks, this is for you- er- him. And you. Him in that he can read it, you in that if he accepts LAMP, you're life will be a much more joyous existance ;) - Apache: By far the most popular web server, with 60.54% market share. Its closest competitor, Microsoft's IIS, has 28.89%. If all variants of each server are counted, Apache's install base increases to 62.17%, while IIS manages 29.42%). Statistics are from http://www.netcraft.net/survey Apache users: Yahoo! Amazon.com AltaVista BBC mp3.com SlashDot HP W3C IBM Verizon FEMA Infoseek PHP: In April 2002, PHP overtook ASP as the #1 server-side scripting language on the internet. In April, PHP was used by 24% of the sites on the Internet. Over the past two years PHP has averaged a 6.5% monthly growth rate. Source: zend.com/news/zendpr.php?id=49 PHP users: Cisco CMG Vodafone Motorola Siemens Ericsson CBS Unilever Philips BMC NTT Air Canada Lufthansa OnVista Lycos Europe Deutsche Bank NASA W3C MySQL: It isn't as easy to determine which database a site uses, but here is a list of sites that do use MySQL, according to MySQL.com: Yahoo! Finance Texas Instruments U.S. Census Bureau NASA Omaha Steaks Slashdot Cross Media Marketing Corp Powell's Books Department of Academic Information Systems Avacom Net Services Blue World Communications CoreSense Ericsson handy.de mobile.de Nemo-Q Silicon Storage Technology, Inc. Virage Linux: I can't find a list for this... I figured these out by trying big sites that came to mind. I didn't encounter a single Microsoft site, but I did get a few *BSD sites, and several Solaris sites. FBI Google Amazon AltaVista Slashdot Verizon FEMA CNN Security: Here's a list of security companies/groups that run any LAMP component: Security Focus(LA) Symantec (L) CERT (LA) Packet Storm (A) FBI (L) OSVDB (LA) At Stake (LA) Netcraft (LA) TESO (L) Phenoelit (LA) Doxpara (LAP) NGS Software (LAMP) PivX (LAP) Grey Magic(LAMP) Phrack(AP) *** It should be noted that just because a component doesn't appear in the list doesn't mean it's not running. The only way I could figure out MySQL was sending a SYN to TCP/3306. If I got a SYN|ACK, I put an M. MySQL could be (should be) firewalled off, and infosec people know this. Also, infosec people tend to play with banners (hehe look @ TESO's - teso.scene.at), so it's entirely possible they're hiding something... Out of all the infosec sites I tried, I managed to find two Microsofts: NAI and Verisign. I didn't bother with ntbugtraq, windowssecurity, etc- then again, I didn't bother with linuxsecurity, root prompt, etc. Only went with groups who pay attention to all OS's... Phrack and OSVDB are a little biased, but they are still cross-platform. -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9ygtO/rncFku1MdIRAmQpAJ9d+KkYSLhMriuZtI9jsjp3CAmZrACfaWJK Tf0R0hEMSICjAi6v9nz67GU= =Jj3Q -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
RE: [PHP] Graphics question
If it's just the browser caching are you able to use something like graph.jpg?cachebust=something random here like a datetime or something. I'm not familiar with the way your doing it.. but I guess it has to be given a name to the browser somewhere doesn't it? I use this on pages and images as well as headers for things that must not be cached. Cheers Brendon -Original Message- From: Mike Mannakee [mailto:mike;basementideas.com] Sent: Friday, November 08, 2002 2:39 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Graphics question Jeez, this is simple. The browser is caching the image. There's no real way to fix that. There are some headers that may encourage the browser to not cache, but there is no sure way to control whether the users will have this setting overridden. imagedestroy($pic); is only freeing the memory used on the server while the script is executing. It's nice if you're doing a whole bunch of processing after generating the image but otherwise the memory is automatically freed when the script exits. It will do nothing to affect the copy that now sits in the browser's cache. In other words, you'll just have to hit reload. You can also search for specifics of the headers that are meant to stop a browser from caching. Mike @ Darwin [EMAIL PROTECTED] wrote in message news:ELEJIJLJOIJKFAHADGOMGEBHCBAA.superbus22;attbi.com... The reason imagedestroy() may have not worked for you is that maybe imagedestroy() is misspelled? If you misspelled it in the code then it won't work. Just a suggestion. - Darwin -Original Message- From: Robbert van Andel [mailto:robbert;vafam.com] Sent: Thursday, November 07, 2002 9:30 PM To: [EMAIL PROTECTED] Subject: [PHP] Graphics question I have created a webpage that builds a table and graph using the GD functions. When I switch to another page or select a different month to build the table for, the graph.jpg does not rebuild. I have to press reload to make the graph render using the new data. I have used imagedistroy($pic) in the hopes that this will work, but it didn't. To elaborate on the situation, I first call imagecreate, then run the code to create the bar graph. I then use imagejpg($pic,$graphname) (or something ot that affect. I don't have access to the code at home). I then show the picture using echo img src=\$graph\; Finally I call imagedestroy($pic). Do you have any suggestions? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] checkboxes and selection lists
I use the following function for my check boxes in forms in PHP. Putting your form element creation into functions or even classes makes life so much easier when you have to validate / change code. you'll be glad you did it Cheers Brendon function fncwriteformcheckbox($strname, $strid, $strvalue, $varcheckedvalue) { /* fncWriteFormCheckbox Returns HTML for a checkbox element Accepts form element name as string Accepts form element ID as string Accepts form element value as string Accepts form element checked value as string or array. If checked value = default value then checked is written to the HTML stream Adapted from ASP functions by Ken Schaefer. */ define(PROC, fncwriteformcheckbox); $strtemp = input type=\checkbox\ name=\ . $strname . \ ID=\ . $strid . \ value=\ . $strvalue . \; if (is_Array($varcheckedvalue)) { foreach ($varcheckedvalue as $varcheckedvalueelement) { if ($varcheckedvalueelement == $strvalue) { $strtemp .= checked; break; } } } else { if ($varcheckedvalue == $strvalue) { $strtemp .= checked; } } $strtemp .= \n; return $strtemp; } - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 05, 2002 5:06 PM Subject: [PHP] checkboxes and selection lists Hi, as a beginner I find the way you declare variables through HTML-forms quite straightforward. But the reverse, to put the same variables back into a form field is not so obvious for selection lists and checkboxes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] getting HTML header from URL
Can't you just call the contents of the page into a variable and extract what you need with regular expressions? Php / Html makes no difference its all text to fopen.. ~ is there a way using fopen() or something similar to read an html/php file before it's loaded? ~~ I'm not sure what you mean here. How can you read anything with out opening it first?. Cheers Brendon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] .htaccess and mod rewrite.
I was looking over a tutorial on Php builder on making search engine friendly sites. While i got the concept of the tutorial and have it working here. I was wondering is it possible to get a php script to run out of the home directory of apache. tutorial: http://www.phpbuilder.com/columns/tim19990117.php3?page=1 in the tut they redirect any calls to files in /local/ to a php file in the root of the site. I'd like to if possible redirect it to script that's stored outside of the home folder for apache. Why you ask? 1. One file to update for any number of websites. 2. So clients don't go touching it. (i know permissions could solve this. but the reason one is more important.) In my .htaccess in the root of the site i have Options +FollowSymLinks RewriteEngine On RewriteRule local.*$ local.php Works fine.. but when i change it to a directory outside of the root it never gets to process or give an error. Any ideas? is it possible? Cheers Brendon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: IIS 5 - ASP PHP dev enviorment
I don't know how familiar you are with PHP yet. But I recently decided to learn PHP myself having already learnt ASP. These 3 things helped me the most. This is a summary of the language differences between PHP, JScript/Javascript and VBScript http://php.weblogs.com/php_jscript_vbscript_1 ADOdb: encapsulates the different PHP database code into a class that's very similar to ADO. thus the name. This enables you to access a MySQL Db, an Access DB or anything else with little hassle. Handy from a cross platform point of view and when you might need to change DB's at a later date. http://php.weblogs.com/ADOdb And of course get the latest downloadable PHP manual. Happy Dabbling! Cheers Brendon -Original Message- From: Jason Morehouse [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 9:52 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: IIS 5 - ASP PHP dev enviorment If the PHP interpreter is installed, there is nothing stopping you from using both (morals aside). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: after mysqlfront?
DB tools (getting better every version) http://www.dbtools.com.br/EN/ Cheers Brendon -Original Message- From: Ernani Joppert Pontes Martins [mailto:[EMAIL PROTECTED]] Sent: Friday, October 04, 2002 6:34 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: after mysqlfront? Mascon or Free Mascon is really a good value HTH, Ernani Lallous [EMAIL PROTECTED] escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello MySqlfront.de's mysqlfront program has been discontinued any equivalent alternative? thanks, Elias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ADOdb
Just curious as to what the general consensus of opinion is on the following class. Do many of you use it?. http://php.weblogs.com/ADOdb Coming over to PHP from ASP (I'm not really interested in learning .Net at the moment) I like that I can switch databases allot faster if the need occurs by using ADOdb. If I had written code just using MySQLconnect I'd have a hell of a time in the future. Cheers Brendon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php