[PHP] Re: Sending lots of emails - 2 choices - choose the best one

2007-10-06 Thread Jeff Cohan
Martin ZvarĂ­k wrote: > Hello-- > I want to send email to 100+ recipients. Two choices I > thought of: > > 1) once call mail() and use BCC, but the negative of this > method is that every recipient in BCC has header "To" > same (so I used to put my email in here - not email of > one of the reci

Re: [PHP] Alternate Colors in Rows ($r=!$r)

2007-10-05 Thread Jeff Cohan
Nathan Nobbe wrote: > personally, i wont argue w/ the compact nature of the > statement; its nice. I agree. Very elegant. Thanks for the clarifications, folks. > its mysterious statements like this that make code fragile, > imho. i prefer the modulus approach. I would have agreed before readi

Re: [PHP] Alternate Colors in Rows ($r=!$r)

2007-10-05 Thread Jeff Cohan
Daevid Vincent wrote: > > I love the simplicity, and very cool. But why does the ($r=!$r) ternary condition work?. (I understand that it DOES but not WHY.) TIA, Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-09-29 Thread Jeff Cohan
Nathan Nobbe wrote: > > although some people believe differently than i; i would argue > trying to learn how to design w/ the classes that php4 provides > is a waste of time. most books you will find regarding object oriented > design assume the language has the basic constructs. ppp mainly. > a

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-09-29 Thread Jeff Cohan
Instruct ICC wrote: > > From: [EMAIL PROTECTED] > > Today's post was > > prompted by my desire to prototype yet another suite of > > browse-read-edit-add-delete functions for someone. > > I was just going to ask you what is BREAD. Cool, basically a > Web-based CRUD? I can't find anything on it,

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-09-29 Thread Jeff Cohan
Greg - Greg Maruszeczka wrote: > Jeff: > The following books really helped me get my head around basic > OOP and design patterns in PHP, especially the first one > which directly addresses both PHP4 and PHP5: > > 1. PHP Architect's Guide to PHP Design Patterns, Jason E. > Sweat, PHP Architect

[PHP] Beginner Tutorials for using CLASSES in PHP4

2007-09-29 Thread Jeff Cohan
Yes, I know how to Google, and I've been Googling... But I would appreciate advice about good beginner tutorials using classes in PHP4 based on your actual experiences. I.e., have some of you found tutorials that really unlocked the doors for you? Ideally, such tutorials would have somewhat reali

Re: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-22 Thread Jeff Cohan
Thank you, all who replied. This helps me understand. I might give a try to the workarounds some suggested. Great newsgroup. Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-22 Thread Jeff Cohan
Dan Parry wrote: > I might be wrong but this would be classed as > 'exploitable'... Webservers should not be allowed > to read from or write to clients... Of course there > is ActiveX... I think we're off the point. My script is simply interrogating the value of the $_FILES[userfile][size] a

Re: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-22 Thread Jeff Cohan
Chris wrote: > [error] => 2 > And also gives you an error code. Yes, I know and knew that. That's why the upload ultimately fails (which is okay). My point is that when a file's size exceeds the MAX_FILE_SIZE value, I want the browser to (a) detect that it's too large BEFORE attempting to upload

[PHP] MAX_FILE_SIZE not working with file uploads

2007-09-20 Thread Jeff Cohan
The punchline question is: What am I missing? Now for the details. I have a form through which a user uploads image files. In the event the chosen file exceeds the MAX_FILE_SIZE (which I have included as a hidden form field immediately after the form tag), I want to abort the upload process and d