RE: [PHP] Question about PHP Licence and it's future!

2008-02-24 Thread Robert Cummings
On Sun, 2008-02-24 at 03:49 -0500, Andrés Robinet wrote: > > -Original Message- > > From: Andrés Robinet [mailto:[EMAIL PROTECTED] > > Sent: Sunday, February 24, 2008 3:41 AM > > To: 'Robert Cummings'; 'Tamer Higazi' > > Cc: php-general@l

RE: [PHP] Re: temporary error

2008-02-24 Thread Robert Cummings
On Sun, 2008-02-24 at 03:34 -0500, Andrés Robinet wrote: > > -Original Message- > > From: Robert Cummings [mailto:[EMAIL PROTECTED] > > Sent: Sunday, February 24, 2008 2:34 AM > > To: Andrés Robinet > > Cc: php-general@lists.php.net > > Su

Re: [PHP] Shopping Carts

2008-02-24 Thread Robert Cummings
On Sun, 2008-02-24 at 09:43 -0600, Shawn McKenzie wrote: > > questions and help out people who try and stumble... > > I'm less likely to help someone who "tries to stumble". In case you weren't be sarcastic... the intent of the above line was probably the following: ...questions and help out

Re: [PHP] RE: temprorary error

2008-02-24 Thread Robert Cummings
On Sun, 2008-02-24 at 09:59 -0800, Mary Anderson wrote: > Hey guys, > Isn't this thread a bit OT? Probably. > Anyway, as areligious person I have to say that I really do not > like to hear religions trashed and smeared the way you are doing. And > just for the record, we Quakers do

Re: [PHP] RE: temprorary error

2008-02-24 Thread Robert Cummings
On Sun, 2008-02-24 at 15:55 -0500, tedd wrote: > At 7:38 PM +0100 2/24/08, Zoltán Németh wrote: > >2008. 02. 24, vasárnap keltezéssel 09.59-kor Mary Anderson ezt írta: > >> Hey guys, > >> Isn't this thread a bit OT? > > > >well, for a php list sure it is... but not the first one, and it see

Re: [PHP] RE: temprorary error

2008-02-25 Thread Robert Cummings
On Mon, 2008-02-25 at 00:56 +, Nathan Rixham wrote: > Robert Cummings wrote: > > On Sun, 2008-02-24 at 15:55 -0500, tedd wrote: > >> At 7:38 PM +0100 2/24/08, Zoltán Németh wrote: > >>> 2008. 02. 24, vasárnap keltezéssel 09.59-kor Mary Anderson ezt írta: > &

Re: [PHP] RE: temprorary error

2008-02-25 Thread Robert Cummings
On Mon, 2008-02-25 at 09:28 -0500, tedd wrote: > At 8:49 AM -0500 2/25/08, Robert Cummings wrote: > >On Mon, 2008-02-25 at 00:56 +, Nathan Rixham wrote: > > > > > [can you resist?] > > > >No I can't resist. It would be tantamount to agreeing with

Re: [PHP] RE: temprorary error

2008-02-25 Thread Robert Cummings
On Mon, 2008-02-25 at 14:50 +, Nathan Rixham wrote: > Robert Cummings wrote: > > On Mon, 2008-02-25 at 09:28 -0500, tedd wrote: > >> At 8:49 AM -0500 2/25/08, Robert Cummings wrote: > >>> On Mon, 2008-02-25 at 00:56 +, Nathan Rixham wrote: > >>> &

Re: [PHP] Re: When to use design patterns?

2008-02-25 Thread Robert Cummings
My favourite patterns are the following: factory singleton adaptor These also happen to be the most common I come across. Cheers, Rob. On Mon, 2008-02-25 at 10:31 -0500, Matty Sarro wrote: > I agree, that head first book is fantabulous. Very well written and easy to > read for a te

Re: [PHP] RE: temprorary error

2008-02-25 Thread Robert Cummings
On Mon, 2008-02-25 at 11:18 -0500, Daniel Brown wrote: > I didn't think Quakers could use computers. Or electricity. You're confusing them with Amish. Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :-

Re: [PHP] Re: Plant Extracts and Our Factory

2008-02-25 Thread Robert Cummings
On Mon, 2008-02-25 at 11:57 -0500, Matty Sarro wrote: > This is not spam, obviously there's some sort of UNIXy recursive joke here, > we just have to find it. > > On Mon, Feb 25, 2008 at 11:40 AM, Daniel Brown <[EMAIL PROTECTED]> wrote: > > >Amazing some of the brightest minds on the Int

Re: [PHP] Storing user ID in a cookie security precautions

2008-02-25 Thread Robert Cummings
On Mon, 2008-02-25 at 12:28 -0500, Steve Finkelstein wrote: > Hi folks, > > I just completed my first reading of Advanced PHP Programming by > George Schlossnagle and was very impressed and thankful for the wealth > of information with examples provided by George. > > With that said, there is a c

Re: [PHP] Question about PHP Licence and it's future!

2008-02-25 Thread Robert Cummings
On Mon, 2008-02-25 at 13:24 -0500, Daniel Brown wrote: > On Mon, Feb 25, 2008 at 1:23 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On Mon, Feb 25, 2008 at 12:53 PM, Andrés Robinet > > <[EMAIL PROTECTED]> wrote: > > > Thanks for pointing out the *who* instead of *that* :), since I didn't > >

Re: [PHP] Re: When to use design patterns?

2008-02-25 Thread Robert Cummings
On Mon, 2008-02-25 at 16:35 -0500, Matty Sarro wrote: > Dangit, I can only do web1.9.5 :( > I guess I've been deprecated... Loozers... I come from the year 3129 and we do DWeb 80.3 on the Hyperweb! We can link to the past... we found Zelda! *groan :)* Cheers, Rob. -- .---

Re: [PHP] checking for and enforcing https

2008-02-26 Thread Robert Cummings
On Tue, 2008-02-26 at 09:45 -0500, Dan Joseph wrote: > On Tue, Feb 26, 2008 at 9:39 AM, tedd <[EMAIL PROTECTED]> wrote: > > > Sometimes I feel like a child here. > > > > Under what circumstances would one require that? > > > > If your script is in a https directory, isn't that secure? OR, is > >

Re: [PHP] checking for and enforcing https

2008-02-26 Thread Robert Cummings
On Tue, 2008-02-26 at 10:16 -0500, tedd wrote: > At 3:47 PM +0100 2/26/08, Per Jessen wrote: > >tedd wrote: > > > >> Sometimes I feel like a child here. > >> > >> Under what circumstances would one require that? > >> > >> If your script is in a https directory, isn't that secure? OR, is > >> t

Re: [PHP] More than one values returned?

2008-02-26 Thread Robert Cummings
On Tue, 2008-02-26 at 10:32 -0500, tedd wrote: > At 1:08 PM -0500 2/25/08, Daniel Brown wrote: > >On Sat, Feb 23, 2008 at 6:21 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > On Fri, 2008-02-22 at 18:13 -0500, tedd wrote: > > > He sai

Re: [PHP] How do you send stylized email?

2008-02-26 Thread Robert Cummings
On Tue, 2008-02-26 at 10:38 -0500, tedd wrote: > At 4:27 PM +0100 2/26/08, Jochem Maas wrote: > >tedd schreef: > >>Now you sound like my wife. :-) > > > >for your sake I hope I don't look like her :-P > > No, I have an absolutely beautiful wife -- no complaints in that department. > > >that sai

Re: [PHP] checking for and enforcing https

2008-02-26 Thread Robert Cummings
On Tue, 2008-02-26 at 10:56 -0500, tedd wrote: > At 10:24 AM -0500 2/26/08, Robert Cummings wrote: > >On Tue, 2008-02-26 at 10:16 -0500, tedd wrote: > > > Then a user wants to purchase something and I direct them to a unique > >> script in the https directory

Re: [PHP] checking for and enforcing https

2008-02-26 Thread Robert Cummings
On Tue, 2008-02-26 at 10:57 -0500, Andrew Ballard wrote: > On Tue, Feb 26, 2008 at 10:16 AM, tedd <[EMAIL PROTECTED]> wrote: > > At 3:47 PM +0100 2/26/08, Per Jessen wrote: > > > > >tedd wrote: > > > > > >> Sometimes I feel like a child here. > > >> > > >> Under what circumstances would one

Re: [PHP] checking for and enforcing https

2008-02-26 Thread Robert Cummings
On Tue, 2008-02-26 at 11:00 -0500, Dan Joseph wrote: > On Tue, Feb 26, 2008 at 10:56 AM, tedd <[EMAIL PROTECTED]> wrote: > > > > > So, let's say I wanted script "secure.php" to be forced to use https > > -- do I use something like what Dan provided, namely? > > > > > if($_SERVER['SERVER_PORT

Re: [PHP] How do you send stylized email?

2008-02-26 Thread Robert Cummings
On Tue, 2008-02-26 at 10:28 -0600, Ray Hauge wrote: > Robert Cummings wrote: > > On Tue, 2008-02-26 at 10:38 -0500, tedd wrote: > >> At 4:27 PM +0100 2/26/08, Jochem Maas wrote: > >>> tedd schreef: > >>>> Now you sound like my wife. :-) > &g

Re: [PHP] How do you send stylized email?

2008-02-26 Thread Robert Cummings
On Tue, 2008-02-26 at 11:53 -0500, Daniel Brown wrote: > On Tue, Feb 26, 2008 at 11:47 AM, Paul Scott <[EMAIL PROTECTED]> wrote: > > > > On Tue, 2008-02-26 at 11:44 -0500, Daniel Brown wrote: > > > I wonder if I can just apt-get the wedding and have it all > > > automated for me. ;-P > > >

RE: [PHP] Question about PHP Licence and it's future!

2008-02-26 Thread Robert Cummings
On Tue, 2008-02-26 at 12:30 -0500, tedd wrote: > At 12:53 PM -0500 2/25/08, Andrés Robinet wrote: > >*gringos* started calling me Rob long ago. It's shorter, it's easier to > >pronounce and it's a short form for my last name (Robinet). > > Gringos? > > That brings up another subject, why is it t

Re: [PHP] How do you send stylized email?

2008-02-26 Thread Robert Cummings
On Tue, 2008-02-26 at 13:14 -0500, Daniel Brown wrote: > On Tue, Feb 26, 2008 at 12:43 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Tue, 2008-02-26 at 11:53 -0500, Daniel Brown wrote: > > > All I have to say is, "Thank God for Jameson

Re: [PHP] Checking an array against user input?

2008-02-26 Thread Robert Cummings
On Wed, 2008-02-27 at 00:36 -0500, Keikonium wrote: > Hello all, > > I am new to this news group, and figured this was the fastest way to get a > good, helpful answer. Here is my problem: > > I have an array that I set up with numbers 00 thru 99. Now, I have some > timestamps that look somewha

Re: [PHP] Checking an array against user input?

2008-02-26 Thread Robert Cummings
quot;11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", > "23", "24", "25", "26", "27", "28", "29", "30", &q

Re: [PHP] Checking an array against user input?

2008-02-26 Thread Robert Cummings
On Wed, 2008-02-27 at 01:53 -0500, Keikonium wrote: > Here is an example of the text I want to update: > > [01:19:23]And the city lit up the night > [01:21:04]With the green glow of the Camlin Hotel > > [01:37:49][01:26:82]Ghosts are in the radio, > [01:42:13][01:31:53]They sing along, they sing

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 08:25 -0600, Ray Hauge wrote: > There is also such a thing as too much. I heard a talk a while ago > about code maintainability. The speaker mentioned a co-worker of his > ran into his cube almost exhausted and proclaimed, "I finally did > it!. > I used every one of the

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 10:05 -0500, Wolf wrote: > Jochem Maas <[EMAIL PROTECTED]> wrote: > > Daniel Brown schreef: > > > On Wed, Feb 27, 2008 at 9:40 AM, David Giragosian <[EMAIL PROTECTED]> > > > wrote: > > >> On 2/27/08, Daniel Brown <[EMAIL PROTECTED]> wrote: > > >> > On Wed, Feb 27, 2008

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 10:42 -0500, Robert Cummings wrote: > On Wed, 2008-02-27 at 10:05 -0500, Wolf wrote: > > Jochem Maas <[EMAIL PROTECTED]> wrote: > > > Daniel Brown schreef: > > > > On Wed, Feb 27, 2008 at 9:40 AM, David Giragosian <[EMAIL PROTECTE

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 15:53 +0100, Jochem Maas wrote: > Paul Scott schreef: > > On Wed, 2008-02-27 at 14:48 +0100, Jochem Maas wrote: > >> Paul Scott schreef: > >> there seems to be some misunderstanding ... a design pattern is not > >> a component (or anything else of substance) but merely a conc

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 10:55 -0500, Daniel Brown wrote: > On Wed, Feb 27, 2008 at 10:42 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > You fools... you can't just use any old design pattern anywhere. It's > > really important to use the correct pattern other

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 11:08 -0500, Nathan Nobbe wrote: > On Wed, Feb 27, 2008 at 10:37 AM, Robert Cummings <[EMAIL PROTECTED]> > wrote: > > > Surely he didn't explain OOP to you... he's anti OOP :) > > > ya; im waiting to see one of these 'simple

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 10:03 -0800, Dare Williams wrote: > Dear Developers, > > http://msdn2.microsoft.com/en-us/library/aa479002.aspx > I read an Article on the above Microsoft website stating the reason why to > Migrate from PHP to ASP.NET. So can you please justify this proofs from > M

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 12:53 -0600, Greg Donald wrote: > On 2/27/08, Robert Cummings <[EMAIL PROTECTED]> wrote: > > *lol* Look at the examples on the page... aks yourself if you enjoy > > typing 2 to 3 times as much to do the same thing. > > *lol* This is one of the

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 14:19 -0500, Nathan Nobbe wrote: > On Wed, Feb 27, 2008 at 2:14 PM, Robert Cummings <[EMAIL PROTECTED]> > wrote: > > > RoR is a framework, not a language. I also save crapload of typing by > > using my InterJinn framework. Ruby as a lan

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 14:29 -0600, Greg Donald wrote: > On 2/27/08, Robert Cummings <[EMAIL PROTECTED]> wrote: > > So is ASP really a framework? > > .Net has upwards of 70K classes. If that's not a framework then I > dunno what is. No need to keep confusing me

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 13:41 -0600, Greg Donald wrote: > On 2/27/08, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > ya; rob; greg is like the new dude on the witty block; > > better pack something good for a comeback :O > > my heads still smoking while i try to think up something > > moderately so ~:

Re: [PHP] Guidance

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 15:59 -0500, Daniel Brown wrote: > > * Shell scripting (BASh, tcl, Expect, AppleScript, Korn, and so forth) Do many people still use Expect? I thought I might be a dying breed. Cheers, Rob. -- .. | InterJin

Re: [PHP] Uppercase first letter of each new line?

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 16:13 -0500, Keikonium wrote: > I'm sure this is really easy to accomplish, but I just can't seem to figure > it out. I have the following: > > $str = " > mary had a little lamb > it's fleece was white as snow > and everywhere that mary went > the lamb was sure to go"; C

Re: [PHP] Uppercase first letter of each new line?

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 16:24 -0500, Robert Cummings wrote: > On Wed, 2008-02-27 at 16:13 -0500, Keikonium wrote: > > I'm sure this is really easy to accomplish, but I just can't seem to figure > > it out. I have the following: > > > > $str = " > >

Re: [PHP] Uppercase first letter of each new line?

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 16:38 -0500, Keikonium wrote: > Thank you again Robert, and thank you too Daniel. I have gotten both methods > to work flawlessly so far :). I am slowly learning by trial and error here, > but sometimes a little push in the right direction does some good ^_^.

Re: [PHP] Guidance

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 15:48 -0600, Shawn McKenzie wrote: > Stut wrote: > > On 27 Feb 2008, at 20:59, Daniel Brown wrote: > >>So let this be at least a basic retort to those who don't consider > >> web development "real programming." Because you'd be surprised how > >> much I hear, "oh, you wo

Re: [PHP] Guidance

2008-02-27 Thread Robert Cummings
On Thu, 2008-02-28 at 02:21 +0100, Jochem Maas wrote: > Stut schreef: > > > > It's worth noting that I've asked the same question to more than a > > few interviewees for traditional C/C++ roles, and I never came > > across one that couldn't do it which I find quite interesting. > > > > Incidental

Re: [PHP] reverse string without strrev();

2008-02-28 Thread Robert Cummings
On Thu, 2008-02-28 at 12:39 +, Nathan Rixham wrote: > Aschwin Wesselius wrote: > > Stut wrote: > >> Just because it works doesn't mean it's right. > >> > >> -Stut > >> > > > > > > What I meant was that I tested the script and it worked, so I didn't > > spot the flaw (wich is obvious and you

Re: [PHP] reverse string without strrev();

2008-02-28 Thread Robert Cummings
On Thu, 2008-02-28 at 16:39 +0100, Aschwin Wesselius wrote: > Aschwin Wesselius wrote: > > Sorry, Rob, that function doesn't return anything. ;-) > > > Bugger, it's getting late. Didn't see the &. It wouldn't really be "in place" if it wasn't a reference. Since the engine would immediat

Re: [PHP] reverse string without strrev();

2008-02-28 Thread Robert Cummings
On Thu, 2008-02-28 at 16:26 +, Robin Vickery wrote: > On 28/02/2008, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > There's always a tradeoff between speed and memory. Here's the low > > memory version: > > > > > > > $str

Re: [PHP] Re: Hot job opportunity - Sr. Software Developer/Architect

2008-02-28 Thread Robert Cummings
On Thu, 2008-02-28 at 12:09 -0500, Daniel Brown wrote: > On Thu, Feb 28, 2008 at 11:56 AM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > > throw in a $350k relocation package, flexible working hours, full > > travelling expenses, double pay for working during working hours, triple > > pay for work

Re: [PHP] Flexible Shopping Cart (was: Shopping Carts)

2008-02-28 Thread Robert Cummings
On Thu, 2008-02-28 at 14:23 -0500, Daniel Brown wrote: > On Thu, Feb 28, 2008 at 2:10 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > > Have you messed around with compressing your output at all? Using > > something like mod_deflate is pretty nice while falling back on the ob > > gz stuff makes a

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-28 Thread Robert Cummings
On Thu, 2008-02-28 at 19:37 +, Stut wrote: > On 28 Feb 2008, at 19:17, Wolf wrote: > > Jason Pruim wrote: > >> My editor automatically replaces like 4 spaces with a tab... Is > >> there a reason not to use tabs instead of spaces? :) > > > > I use spaces since when I indent with 4 spaces it i

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-28 Thread Robert Cummings
On Thu, 2008-02-28 at 20:25 +, Nathan Rixham wrote: > > I use tab's in all my code, and replace them with spaces when > posting/mailing for legibility. > > couldn't imagine ever hitting space 4/8/12/16+ times to write a line of > code when i can just tab/shit+tab to indent. Uhhhm, I hit the

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-28 Thread Robert Cummings
On Thu, 2008-02-28 at 20:43 +, Nathan Rixham wrote: > [snip] > Eric Butera wrote: > > I can hit tab and shift/tab too and it puts in spaces for me. > [snip] > Robert Cummings wrote: > > Uhhhm, I hit the tab button also and it does the right thing (namely > > i

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-28 Thread Robert Cummings
On Thu, 2008-02-28 at 23:52 +, Nathan Rixham wrote: > Robert Cummings wrote: > > On Thu, 2008-02-28 at 20:43 +, Nathan Rixham wrote: > >> [snip] > >> Eric Butera wrote: > >>> I can hit tab and shift/tab too and it puts in spaces for me.

Re: [PHP] Making sure an include file works

2008-02-28 Thread Robert Cummings
On Thu, 2008-02-28 at 18:58 -0800, Richard S. Crawford wrote: > I'm trying to figure out a way to make sure an included PHP file has no > syntax > errors before actually including it as a part of project. Is this even > possible? I'm running into brick walls. I don't believe there is a functi

Re: [PHP] echo returnArray()['a']; // workaround

2008-02-28 Thread Robert Cummings
On Fri, 2008-02-29 at 00:18 +, Nathan Rixham wrote: > > don't say I didn't warn ya fellow nathan! > > #!/usr/bin/php > function sillyFunc() { > return array('a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e'=>'some > string'); > } > > echo !${~${''}='sillyFunc'}=&${''}().${~${''}}['e'] . PHP

Re: [PHP] Making sure an include file works

2008-02-28 Thread Robert Cummings
On Thu, 2008-02-28 at 20:17 -0800, Casey wrote: > On Thu, Feb 28, 2008 at 7:50 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Thu, 2008-02-28 at 18:58 -0800, Richard S. Crawford wrote: > > > I'm trying to figure out a way to make sure an i

Re: [PHP] echo returnArray()['a']; // workaround

2008-02-28 Thread Robert Cummings
On Fri, 2008-02-29 at 04:04 +, Nathan Rixham wrote: > Robert Cummings wrote: > > On Fri, 2008-02-29 at 00:18 +, Nathan Rixham wrote: > >> don't say I didn't warn ya fellow nathan! > >> > >> #!/usr/bin/php > >> >> function si

Re: [PHP] echo returnArray()['a']; // workaround

2008-02-28 Thread Robert Cummings
On Thu, 2008-02-28 at 23:27 -0500, Robert Cummings wrote: > On Fri, 2008-02-29 at 04:04 +, Nathan Rixham wrote: > > Robert Cummings wrote: > > > On Fri, 2008-02-29 at 00:18 +, Nathan Rixham wrote: > > >> don't say I didn't warn ya fel

Re: [PHP] echo returnArray()['a']; // workaround

2008-02-28 Thread Robert Cummings
On Fri, 2008-02-29 at 04:38 +, Nathan Rixham wrote: > Robert Cummings wrote: > > On Thu, 2008-02-28 at 23:27 -0500, Robert Cummings wrote: > >> On Fri, 2008-02-29 at 04:04 +, Nathan Rixham wrote: > >>> Robert Cummings wrote: > >>>> On Fri, 2

Re: [PHP] Making sure an include file works

2008-02-28 Thread Robert Cummings
On Thu, 2008-02-28 at 20:46 -0800, Jim Lucas wrote: > Robert Cummings wrote: > > On Thu, 2008-02-28 at 20:17 -0800, Casey wrote: > >> On Thu, Feb 28, 2008 at 7:50 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > >>> On Thu, 2008-02-28 at 18:58 -0800, Ric

Re: [PHP] echo returnArray()['a']; // workaround

2008-02-28 Thread Robert Cummings
On Thu, 2008-02-28 at 20:42 -0800, Casey wrote: > On Thu, Feb 28, 2008 at 8:38 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > > > > Robert Cummings wrote: > > > On Thu, 2008-02-28 at 23:27 -0500, Robert Cummings wrote: > > >> On Fri, 2008

Re: [PHP] Making sure an include file works

2008-02-28 Thread Robert Cummings
On Thu, 2008-02-28 at 20:53 -0800, Jim Lucas wrote: > Robert Cummings wrote: > > On Thu, 2008-02-28 at 20:46 -0800, Jim Lucas wrote: > >> Robert Cummings wrote: > >>> On Thu, 2008-02-28 at 20:17 -0800, Casey wrote: > >>>> On Thu, Feb 28, 2008

Re: [PHP] echo returnArray()['a']; // workaround

2008-02-28 Thread Robert Cummings
On Fri, 2008-02-29 at 05:34 +, Nathan Rixham wrote: > Casey wrote: > > > > I don't know why I'm continuing this... but for the truly crazy: > > function w(&$t) { > > $t = array('f' => '...'); > > return 't'; > > } > > > > echo ${w($t)}['f']; > > > >

RE: [PHP] Get country from Phone number

2008-02-29 Thread Robert Cummings
On Fri, 2008-02-29 at 05:17 -0500, Andrés Robinet wrote: > > -Original Message- > > From: Dani Castaños [mailto:[EMAIL PROTECTED] > > Sent: Friday, February 29, 2008 5:03 AM > > To: PHP LIST > > Subject: [PHP] Get country from Phone number > > > > Hi all! > > > > I'm looking for some pie

Re: [PHP] php and google

2008-02-29 Thread Robert Cummings
On Sat, 2008-03-01 at 01:50 +, Nathan Rixham wrote: > I think that I may be correct in saying that google blog search uses / > is made in PHP [which I never realised] > > try googling for site:blogsearch.google.com you should get back a page > with an all revealing PHPSESSID > > am I specu

Re: [PHP] regular expressions question

2008-03-05 Thread Robert Cummings
On Wed, 2008-03-05 at 07:13 -0800, It Maq wrote: > Hi, > > I am using that right now and i have don't know how to include blank fields. > For example if a user does not fill a field in a form i want to accept it. I > tried the code you posted, for now it is blocking blank fields. > > Thank you

Re: [PHP] Array questions...

2008-03-05 Thread Robert Cummings
On Wed, 2008-03-05 at 10:28 -0500, Jason Pruim wrote: > So for some reason, arrays always mess me up... I don't know what it > is, but it just hasn't clicked yet... So I'm sure this is a simple > question for someone who knows and understands arrays :) > > So with that being said here's the c

Re: [PHP] Array questions...

2008-03-05 Thread Robert Cummings
On Wed, 2008-03-05 at 10:53 -0500, Jason Pruim wrote: > On Mar 5, 2008, at 10:35 AM, Robert Cummings wrote: > > > > I think you want the following after performing a very cursory look at > > your sample. > > > > > > > $NumArray > >= isset( $_PO

Re: [PHP] save image in database vs folder

2008-03-11 Thread Robert Cummings
On Tue, 2008-03-11 at 11:18 +, Richard Heyes wrote: > > some friend of mine ague about this matter, this morning. they say, saving > > image in > > database is more professional. I am not really agree with that,since i am > > just a novice programmer. > > Well, bearing in mind I only have exp

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Robert Cummings
On Wed, 2008-03-12 at 10:33 -0500, Greg Donald wrote: > On 3/12/08, Richard Heyes <[EMAIL PROTECTED]> wrote: > > > I'm wondering what's wrong with the use of __autoload(), since I see that > > > projects like the Zend Framework don't use it and prefer to require_once > > > each required file. >

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Robert Cummings
On Wed, 2008-03-12 at 11:12 -0500, Greg Donald wrote: > On 3/12/08, Robert Cummings <[EMAIL PROTECTED]> wrote: > > But then you'd end up with something like Ruby on Rails... and we all > > know about Ruby on Rails *VOMIT*. > > You clearly don't know much abo

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Robert Cummings
On Wed, 2008-03-12 at 11:26 -0500, Greg Donald wrote: > On 3/12/08, Richard Heyes <[EMAIL PROTECTED]> wrote: > > It's a perfectly viable business reason. > > No it's not. I guess you need a "business" scenario to wrap your head > around the idiocy. > > Here you go: > > Imagine at Blizzard one

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Robert Cummings
On Wed, 2008-03-12 at 18:21 +0100, Zoltán Németh wrote: > 2008. 03. 12, szerda keltezéssel 12.12-kor Greg Donald ezt írta: > > On 3/12/08, Zoltán Németh <[EMAIL PROTECTED]> wrote: > > > but I strongly think that Ruby as a > > > language just plain sucks ;) > > > > And exactly how many projects do

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Robert Cummings
On Wed, 2008-03-12 at 14:09 -0500, Greg Donald wrote: > On 3/12/08, Zoltán Németh <[EMAIL PROTECTED]> wrote: > > I can't really think of a > > case where I would want to modify the class definition of an > > instantiated object > > You can't very well think to walk if you don't have legs. Yo

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Robert Cummings
On Wed, 2008-03-12 at 14:59 -0500, Greg Donald wrote: > On 3/12/08, Robert Cummings <[EMAIL PROTECTED]> wrote: > > You make it sound like this stuff is new or something. > > Obviously to some it is. Just in this thread we had a person claim to > only know PHP, C, and

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Robert Cummings
On Wed, 2008-03-12 at 15:11 -0500, Greg Donald wrote: > On 3/12/08, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > On Wed, Mar 12, 2008 at 3:59 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > > > I'm sorry, I lost context, what missing PHP language feature are you > > > referring to as "it"? > > > > fun

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Robert Cummings
On Wed, 2008-03-12 at 16:11 -0500, Greg Donald wrote: > On 3/12/08, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > -1 for not recognizing a rhetorical question. > > > > +2 for setting his tongue firmly in cheek and providing you with an > > answer to y

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Robert Cummings
On Wed, 2008-03-12 at 16:11 -0500, Greg Donald wrote: > On 3/12/08, Robert Cummings <[EMAIL PROTECTED]> wrote: > > Yes, but some of your diatribe was originally directed my way. And this > > stuff certainly isn't new to me. > > Sure it is, else you'd

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Robert Cummings
On Wed, 2008-03-12 at 22:26 +0100, Aschwin Wesselius wrote: > Robert Cummings wrote: > > On Wed, 2008-03-12 at 16:11 -0500, Greg Donald wrote: > > > >> On 3/12/08, Robert Cummings <[EMAIL PROTECTED]> wrote: > >> > >>> > -1 for not

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Robert Cummings
On Wed, 2008-03-12 at 21:36 +, Dave Goodchild wrote: > Will you two pricks cut it out. How fucking tedious. Wow! Way to totally devolve a good thread. :B Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Robert Cummings
On Wed, 2008-03-12 at 17:05 -0500, Greg Donald wrote: > On 3/12/08, Robert Cummings <[EMAIL PROTECTED]> wrote: > > Just because someone got a flashy new toy doesn't mean I want it. I've > > got better things to do than play with flashy toys for the mere purpose &

Re: [PHP] What's wrong the __autoload()?

2008-03-13 Thread Robert Cummings
On Thu, 2008-03-13 at 10:02 -0500, Greg Donald wrote: > On 3/12/08, Ray Hauge <[EMAIL PROTECTED]> wrote: > > You > > come to a PHP mailing list to proclaim that RoR is better? > > No dumbass, I have already been here for a long time: > > http://marc.info/?l=php-general&m=95331489301933&w=2 > >

Re: [PHP] strtotime( 'last Sunday' ) and republicans

2008-03-13 Thread Robert Cummings
On Thu, 2008-03-13 at 11:49 -0400, tedd wrote: > At 10:43 AM -0500 3/12/08, Greg Donald wrote: > >No matter where we draw the borders or put the roads and highways, > >it's still just the one planet, with the same finite resources we all > >have to share. Being mad about globalization is pointles

Re: [PHP] What's wrong the __autoload()?

2008-03-13 Thread Robert Cummings
On Thu, 2008-03-13 at 14:36 -0500, Greg Donald wrote: > On 3/13/08, Robert Cummings <[EMAIL PROTECTED]> wrote: > > Because PHP is the dog and Ruby is the cat? > > Yeah, I guess. I have several cats. Indeed they are fast, sleek, and > smart just like Ruby. So... t

Re: [PHP] What's wrong the __autoload()?

2008-03-13 Thread Robert Cummings
On Thu, 2008-03-13 at 15:17 -0500, Greg Donald wrote: > On 3/13/08, Robert Cummings <[EMAIL PROTECTED]> wrote: > > So... there we have it everyone... Greg has admitted that Ruby is as > > smart as a cat. > > Hahaha.. yeah, you really got me on that one. > &

Re: [PHP] What's wrong the __autoload()?

2008-03-13 Thread Robert Cummings
On Thu, 2008-03-13 at 22:39 +0100, Aschwin Wesselius wrote: > Andrés Robinet wrote: > > why don't you show us your > > PHP work instead? Maybe you like RoR more because you suck at PHP. > > > > Regards, > > > > Rob > > Hi, can somebody please point out something to me? Did I miss something? > Is

Re: [PHP] Re:

2008-03-14 Thread Robert Cummings
On Fri, 2008-03-14 at 23:14 -0400, John Taylor-Johnston wrote: > $_POST["checkregion"] is supposed to be an array, no? You want the following (otherwise each checked entry overwrites the previous): Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PH

Re: [PHP] Re:

2008-03-14 Thread Robert Cummings
On Sat, 2008-03-15 at 00:18 -0400, John Taylor-Johnston wrote: > Sorry, will this work? > > $sql ='insert into `database`.`table` (`Nom` ,`checkregion`) > values ('John', '".serialise($_POST['checkregion'])."') '; Depends on what you want to do with the data. But you've certainly spelled seriali

Re: [PHP] Re:

2008-03-14 Thread Robert Cummings
On Sat, 2008-03-15 at 00:33 -0400, John Taylor-Johnston wrote: > Robert, > > >>>> Array > >>>> ( > >>>> [0] => Hemmingford > >>>> [1] => Huntingdon > >>>> ) > > You want the following (ot

Re: [PHP] Re:

2008-03-14 Thread Robert Cummings
On Sat, 2008-03-15 at 01:00 -0400, John Taylor-Johnston wrote: > Robert Cummings wrote: > > On Sat, 2008-03-15 at 00:33 -0400, John Taylor-Johnston wrote: > >> Robert, > >> > >>>>>> Array > >>>>>> ( > >>>>&g

Re: [PHP] Objects as array key names??

2008-03-15 Thread Robert Cummings
On Sat, 2008-03-15 at 15:02 -0700, Jim Lucas wrote: > This question should probably be directed at the PHP Internals list, but > I thought I would start by asking here first if anybody would even use > this feature. > > It has been brought to my attention that with Perl and Ruby, you can use >

Re: [PHP] Objects as array key names??

2008-03-16 Thread Robert Cummings
On Sun, 2008-03-16 at 11:42 -0700, Jim Lucas wrote: > Robert Cummings wrote: > > Imagine 200 customers in your example... your example will hit the DB > > 201 times. The above hits the DB twice. > > My code was intended to get the concept across. Thanks for the > sug

Re: [PHP] Re: Closures

2008-03-18 Thread Robert Cummings
On Tue, 2008-03-18 at 22:56 -0500, Shawn McKenzie wrote: > Ray Hauge wrote: > > I've been reading up on some of the parts of PHP that has been suggested > > could be improved so that I could be more well informed. One of the > > more "interesting" (for lack of a better word) suggestions is closur

Re: [PHP] Re: algorithm of pages beaking

2008-03-20 Thread Robert Cummings
On Thu, 2008-03-20 at 11:32 -0400, tedd wrote: > At 11:35 PM + 3/19/08, George J wrote: > >Hi, > > > >I'm trying to resolve an issue with a pagination routine. Sounds like we're > >working on a similar routine. I have a query returning products from a > >database and then display the results i

Re: [PHP] why use {} around vraiable?

2008-03-20 Thread Robert Cummings
On Thu, 2008-03-20 at 09:22 -0700, Lamp Lists wrote: > hi, > I saw several times that some people use this > > $parameters = array( > 'param1' => "{$_POST["param1"]}", > 'param2' => "{$_POST["param2"]}" > ); Ignorance. > or > > $query = mysql_query("SELECT * FROM table1 WHERE id='{$sess

[PHP] Convert html to pdf with php

2008-03-20 Thread Robert Burdo
Does anyone know how to convert an HTML form to a pdf with php? -- Robert Burdo nuschooldesign.com

Re: [PHP] spider

2008-03-21 Thread Robert Cummings
On Fri, 2008-03-21 at 13:58 -0400, Wolf wrote: > tedd <[EMAIL PROTECTED]> wrote: > > In one word: CURL > > In another word: WGET > > Both are pretty effecitve and give pretty much the same results, however > with the CURL you can pass other things alone (user:pass) which with > wget you c

Re: [PHP] munge / obfuscate ?

2008-03-27 Thread Robert Cummings
On Thu, 2008-03-27 at 21:10 -0400, Joey wrote: > Hi All, > > > > I have written an app to allow a person to go online and see a picture we > take of them. When we link to the picture I don't want it to be obvious > that the URL is > > Domain.Com/Pix/123.jpg because the next person we take a

RE: [PHP] munge / obfuscate ?

2008-03-27 Thread Robert Cummings
Hi Joey, Please keep responses on the list so others can also benefit from the learning process. Comments below... On Thu, 2008-03-27 at 21:46 -0400, Joey wrote: > > -Original Message- > > From: Robert Cummings [mailto:[EMAIL PROTECTED] > > Sent: Thursday, March 27, 2

<    25   26   27   28   29   30   31   32   33   34   >