[PHP] Re: Mail que system written in PHP for Linux?
Hello, on 07/15/2006 01:07 AM eastcoastguyz said the following: > I have a client who's web site needs to send out opt-in e-mail. I > contacted the web hosting service who they intend to host this with and > they have a limit of 500 e-mail messages sent per hour. I suspect most > web hosting services have a limit on this, so I thought about how to > address this. The e-mail being sent out would be personalized, and > there could be other processes from this same web site sending out > e-mail to a list too. So I thought about developing a mail que system > written in PHP to help with this. > > If this already exists, please point me to it. If there is a better way > to do this, I would be interested to hear it. Thanks! When you use the mail function in Linux, it uses sendmail or compatible. In Linux, all MTA are compatible with sendmail. Sendmail is already a queue system. There does not seem to be much point in duplicating a sendmail function that it already does better than PHP could. PHP will certainly will not override your ISP limits. -- Regards, Manuel Lemos Metastorage - Data object relational mapping layer generator http://www.metastorage.net/ 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
Re: [PHP] session_start/session_write_close creates multiple sessioncookie headers. How to fix this.
Mathijs wrote: Chris wrote: Mathijs wrote: Hello again, I Use session_write_close() so the page loads quicker because i use session on multiple place. This because session has protection for race conditions. Now it works very well and i don't have any problems at all. I only see that there are multiple session cookie headers set. I Personally think that one is enough :P. How can i make it so that it just sets just one and not set this header every time i call session_start or session_write_close. Because i don't know when the cookie is set. I think this will be an either/or situation. Either it only sends one session cookie header and you don't use session_write_close all over the place.. or, it sends multiple cookies and you do use session_write_close all over the place. The internals of php would set this behaviour, not something you can change without changing the C code. Hmmm... I find it kinda strange that it sets the same uniqueId with the same session name more then once. It would be logical to just have one.. And overwrite the previous session cookie. Any other thing would be an programmers fault in my opinion. Because you can't have more then one session id per session cookie name. Also, the browser won't send all the cookies back. This is just useless overhead. But it seems that i have to live with it (for now). I think ill report this as an bug to PHP. Doubt you'll get very far. I could open 10 tabs in firefox and I'll have the same session id in each one, but they'll all be on different pages doing different things. Even in IE, if I open a new page I'll get the same session id in both browser windows. -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] GD to database directly
[snip] ...a lot of stuff started by my original answer... [/snip] While this has been a fine debate I find that the discussion has deteriorated badly. Can we bring it back on point? There are a lot of us using MySQL (and PostGreSQL) along with PHP and in practice we have found that storing images in the database to be less than ideal from both a performance and backup POV. The reasons range from speed to overhead to ease of use. On our hardware. It not only has to do with storing and retrieving BLOB data, but also things like indexing, OS qwirks and the like. Kevin, you have more than once pointed out using a RAW format for operating the data system, what exactly do you mean? The database becomes the OS? If so, how do you set that up? It is something that I am not totally familiar with. If you are talking about RAW photo data I am familiar with that. As far as backup, I have a routine that backs up my databases AND the images, PDF's, DOC's, and other binary file format items that the data system points to. That wasn't hard to set up, and it is very reliable. I never have a problem with integrity. And finally, benchmarking. There would be three benchmarks to be conducted and concerned with here, as I have stated before; PHP and images in the OS's file system PHP and images in the MySQL database PHP and images in the OS's file system pointed to by data stored in the MySQL database. Usually only two are compared. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP | Flash Query String
Sunnrunner wrote: > Hello, > > I have a button flash file. This file needs two parameters that are passed > in through the query string. > > Here's my query string. > navButtons.swf?myURL={$menu_channel_id[menu]}&buttonLabel={$menu_text[menu]} > > here is the URL that is being passed in > > domain.com/index.php?c=21&a=35&w=2&r=Y > > the ampersands are making flash think these are separate variables to pass > into flash. Is there a way to make flash send in the above link as a whole > without chopping it up into several separate variables. urlencode the url ... echo "navButtons.swf?myURL=", urlencode(domain.com/index.php?c=21&a=35&w=2&r=Y), "&buttonLabel=ClickMe"; chances are you will have urldecode the value of myURL inside the flash file in order to use. > > I would use some other method besides a query string but, I really need this > to work with it. > > Hope that makes sense! > > Thanks, > T > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP | Flash Query String
Hello, I have a button flash file. This file needs two parameters that are passed in through the query string. Here's my query string. navButtons.swf?myURL={$menu_channel_id[menu]}&buttonLabel={$menu_text[menu]} here is the URL that is being passed in domain.com/index.php?c=21&a=35&w=2&r=Y the ampersands are making flash think these are separate variables to pass into flash. Is there a way to make flash send in the above link as a whole without chopping it up into several separate variables. I would use some other method besides a query string but, I really need this to work with it. Hope that makes sense! Thanks, T -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock
On Sun, 2006-07-16 at 13:02, Kevin Waterson wrote: > This one time, at band camp, "Richard Lynch" <[EMAIL PROTECTED]> wrote: > > > Zend has provided a great deal to the PHP community -- Zend basically > > pays Ze'ev and Andi (and more) to work about half their time on > > improving PHP Open Source code. > > As an ex-Zend employee I find that they are maybe the only ones with this > arrangement. It is in the best interest of Zend to have the PHP language > pushed further and (dare I name the beast?) Web 2.0 to be able to push > thier line of products. What good is a PHP IDE without the PHP language? > > I am not putting forward some anti > scenario, > but where do folks draw the line? I don't think you can draw a line. There's black and white and a lot of gray in between and that gray zone depends on the person, how they feel on a particular day, etc etc etc. If we want to get dirty with the guts of this argument many people on this list are asking PHP questions that will advance their own commercial applications or services. While I think a Zend specific question isn't quite a PHP question, I do feel that some of them fall into the gray zone. Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] GD to database directly
This one time, at band camp, "Richard Lynch" <[EMAIL PROTECTED]> wrote: > Assume, for the sake of argument, that your hard drive crashed. > > And your backup tape was invalid. > > And the weekly backup tape is also invalid. > > And, for good measuere, the monthly tape is just so out-of-date, that > recovering from the crashed hard drive actually looks like an > attractive option. In this scenario, it would not matter where your images were stored, however it would be a simple matter of hot swapping one of the raid drives. > > LONGBLOB > > Not big enough. 4GB is big enough for any sane image Kind regards Kevin -- "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock
This one time, at band camp, "Richard Lynch" <[EMAIL PROTECTED]> wrote: > Zend has provided a great deal to the PHP community -- Zend basically > pays Ze'ev and Andi (and more) to work about half their time on > improving PHP Open Source code. As an ex-Zend employee I find that they are maybe the only ones with this arrangement. It is in the best interest of Zend to have the PHP language pushed further and (dare I name the beast?) Web 2.0 to be able to push thier line of products. What good is a PHP IDE without the PHP language? I am not putting forward some anti scenario, but where do folks draw the line? Kind regards kevin -- "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php-head-shrink WAS: Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock
Paul Scott wrote: > --=neXtPaRt_1152981398 > Content-Type: text/plain > Content-Transfer-Encoding: 7bit > > > My IBM laptop and I are having relationship issues... I suggest trading her in for a better looking model half her age, try a Mac Book Pro ;-) > > --Paul > > > --=neXtPaRt_1152981398 > Content-Type: text/plain; > > All Email originating from UWC is covered by disclaimer > http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm > > --=neXtPaRt_1152981398-- > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock
""Richard Lynch"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, July 15, 2006 2:05 am, Kevin Waterson wrote: >> Being that these products are commercial in nature, should not they >> be supporting thier own products, rather than relying on the good >> will of the open source/PHP folks for tech support? If we should >> support >> Zend products, why not other commercial applications also? >> Is Zend hoping for volunteer contributions for commercial enterprises? >> Should we support Zend business partners also? > > Zend has provided a great deal to the PHP community -- Zend basically > pays Ze'ev and Andi (and more) to work about half their time on > improving PHP Open Source code. > > Zend has NEVER expected the PHP General list to provide free support > for their products. > > It is inevitable that some people will turn here if Zend Support lags > for whatever reason, for any definition you choose for "lag" -- but > you can hardly blame Zend for that. > > -- > Like Music? > http://l-i-e.com/artists.htm I have used Zend Studio Professional for just over a year and I have only ever had two problems which I raised with Zend support, and in both cases their response was quick and their solution effective. Perhaps in some cases they do not get back quickly because they are still trying to analyse the problem, or trying to reproduce it before they can suggest a solution. I have no complaints with either their product or their support. -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] GD to database directly
Richard Lynch wrote: Given the number of posts here in PHP-General alone, of people getting tripped up by these things, I have concluded that cramming images into the DB is far more trouble than it is worth. It *seems* like a Good Idea until you actually do it for awhile, and then run into all these snags. Oddly enough, I have never run into them. Nor has terraserver which stores hundreds of thousands of images in its db, although not mysql. You may well have the needed skill set. Alas, the sheer number of problem posts here would indicate that that skillset is not the norm. I'll stop advising against images in the DB when you answer all the posts here from the problems it causes. :-) Given the right database, then posting raw data to it is not a problem. I would not classify MySQL as one that one would use or that. Personally I still use the rather crude database called Windows to store binary data and live with the backup and crash problems that involves. Simply because the customers have insisted, and signed to accept that they know the problems - even after showing how much more stable Linux is for the server! At the end of the day, binary data is stored on the disk. Whether it is stored in a 'proper' BLOB page set with an id in the related record or direct on the disk with the file name in the record, it still has to be accessed from the disk in order to use it. None of the existing OS/Database options provide the ideal solution and it is that which needs fixing :) - perhaps in another 100 years when Windows has been replaced with a real operating system ;) -- Lester Caine - G8HFL - L.S.Caine Electronic Services - http://home.lsces.co.uk Model Engineers Digital Workshop - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/ Treasurer - Firebird Foundation Inc. - http://www.firebirdsql.org/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php