Re: [PHP] framework or not

2013-10-26 Thread Robert Cummings
On 13-10-24 09:41 PM, Larry Garfield wrote: On 10/23/2013 08:51 AM, Jay Blanchard wrote: [snip] a bitter rant[/snip] Dang Larry - bad night? That wasn't a bitter rant. You haven't seen me bitter. :-) That was tough love to the OP. I don't see a reason to pussyfoot around the

Re: [PHP] framework or not

2013-10-23 Thread Robert Cummings
On 13-10-22 05:38 PM, Larry Garfield wrote: If you need more convincing, I will cite Fred Brooks: http://www.cs.nott.ac.uk/~cah/G51ISS/Documents/NoSilverBullet.html Excellent article, thanks for the pointer. So many assertions have stood the test of time thus far. Cheers, Rob. -- E-Mail

Re: [PHP] Static utility class?

2013-09-05 Thread Robert Cummings
On 13-09-04 09:06 PM, Micky Hulse wrote: Hi Rodrigo, thanks for the help, I really appreciate it! On Wed, Sep 4, 2013 at 5:55 PM, Rodrigo Santos rodrigos.santo...@gmail.com wrote: Hi, first, sorry for the bad English. Not bad at all! Very clear and well written reply (heck, it's better than

Re: [PHP] Static utility class?

2013-09-05 Thread Robert Cummings
On 13-09-05 02:27 PM, Micky Hulse wrote: On Wed, Sep 4, 2013 at 11:07 PM, Robert Cummings rob...@interjinn.com wrote: I'll second Rodrigo's opinion, but would like to comment that the name of the class is misleading since it's called Singleton. The singleton pattern is used when you only ever

Re: [PHP] exec and system do not work

2013-08-26 Thread Robert Cummings
On 13-08-25 11:41 PM, Ethan Rosenberg wrote: Dear List - I'm lost on this one - This works - $out = system(ls -l ,$retvals); printf(%s, $out); This does - echo exec(ls -l); This does not - if( !file_exists(/var/www/orders.txt)); { $out = system(touch /var/www/orders.txt, $ret);

Re: [PHP] How can I submit more than 2000 items of data?

2013-08-19 Thread Robert Cummings
On 13-08-19 11:32 AM, Stuart Dallas wrote: On 19 Aug 2013, at 16:24, Matijn Woudt tijn...@gmail.com wrote: You might want to explain how you convert form data to JSON without javascript? PHP can do it. Ruby can do it. .NET can do it. Just because you want to use JSON in a web browser where

Re: [PHP] Finally....

2013-08-16 Thread Robert Cummings
On 13-08-16 11:58 AM, Marc Guay wrote: Those Belgacom emails were the only thing keeping me from a crushing loneliness - undo! *sniffle* Another friend bites the dust *sniffle*. -- E-Mail Disclaimer: Information contained in this message and any attached documents is considered confidential

Re: [PHP] POST action

2013-08-01 Thread Robert Cummings
On 13-08-01 05:14 PM, Paul M Foster wrote: On Thu, Aug 01, 2013 at 02:35:04PM -0500, Larry Garfield wrote: [snip] So you're writing your own form tags for each specific time you need a form, or you wrote your own form builder API that is writing the form tags for you? Unless my wife

Re: [PHP] POST action

2013-07-28 Thread Robert Cummings
On 13-07-28 01:14 PM, iccsi wrote: form action=action.php method=post pYour name: input type=text name=name //p pYour age: input type=text name=age //p pinput type=submit //p /formIn the PHP tutorial manual, it says that we can have post action to the form itself just like above coding.I

Re: [PHP] POST action

2013-07-28 Thread Robert Cummings
On 13-07-28 01:51 PM, Jim Giner wrote: On 7/28/2013 1:38 PM, Ashley Sheridan wrote: On Sun, 2013-07-28 at 13:37 -0400, Jim Giner wrote: On 7/28/2013 1:26 PM, Larry Garfield wrote: On 07/28/2013 12:14 PM, iccsi wrote: form action=action.php method=post pYour name: input type=text name=name

Re: [PHP] From 24/7/2013 to 2013-07-24

2013-07-26 Thread Robert Cummings
On 13-07-26 11:42 AM, jomali wrote: On Fri, Jul 26, 2013 at 5:18 AM, Karl-Arne Gjersøyen karlar...@gmail.comwrote: Below is something I try that ofcourse not work because of rsosort. Here is my code: --- $lagret_dato = $_POST['lagret_dato']; foreach($lagret_dato as

Re: [PHP] From 24/7/2013 to 2013-07-24

2013-07-26 Thread Robert Cummings
On 13-07-26 04:38 PM, jomali wrote: On Fri, Jul 26, 2013 at 1:08 PM, Robert Cummings rob...@interjinn.comwrote: On 13-07-26 11:42 AM, jomali wrote: On Fri, Jul 26, 2013 at 5:18 AM, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Below is something I try that ofcourse not work because

Re: [PHP] From 24/7/2013 to 2013-07-24

2013-07-26 Thread Robert Cummings
On 13-07-26 05:33 PM, Jim Giner wrote: On 7/26/2013 5:29 PM, Robert Cummings wrote: And so it follows, that my solution, thus far, is the only solution posted that actually meets the requirements. Why you think my solution does not perform is beyond me since a simple run of the code would

Re: [PHP] Re: Programmers and developers needed

2012-09-19 Thread Robert Cummings
On 12-09-19 06:07 AM, Matijn Woudt wrote: On Wed, Sep 19, 2012 at 11:53 AM, German Geek geek...@gmail.com wrote: See below. On 19 September 2012 04:45, Matijn Woudt tijn...@gmail.com wrote: On Tue, Sep 18, 2012 at 8:52 AM, agbo onyador onya...@gmail.com wrote: The growing power of the

Re: [PHP] Re: Programmers and developers needed

2012-09-18 Thread Robert Cummings
On 12-09-18 02:12 PM, Matijn Woudt wrote: On Tue, Sep 18, 2012 at 8:02 PM, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Matijn Woudt [mailto:tijn...@gmail.com] You're missing the most important aspect of social networks.. Advertising. Please tell me that is said

Re: [PHP] Re: Programmers and developers needed

2012-09-18 Thread Robert Cummings
On 12-09-18 02:38 PM, Jeff Burcher wrote: -Original Message- From: Robert Cummings [mailto:rob...@interjinn.com] Sent: Tuesday, September 18, 2012 2:22 PM To: Matijn Woudt Cc: Daevid Vincent; PHP-General Subject: Re: [PHP] Re: Programmers and developers needed On 12-09-18 02:12 PM

Re: [PHP] Programmers and developers needed

2012-09-14 Thread Robert Cummings
On 12-09-13 06:10 PM, Ashley Sheridan wrote: On Thu, 2012-09-13 at 16:48 -0400, Tedd Sperling wrote: On Sep 13, 2012, at 3:45 AM, agbo onyador onya...@gmail.com wrote: Hello there! We are looking for programmers and developers to create a world wide system. Your comments are welcome. Wow!

Re: [PHP] Programmers and developers needed

2012-09-13 Thread Robert Cummings
On 12-09-13 08:44 AM, Matijn Woudt wrote: On Thu, Sep 13, 2012 at 2:12 PM, Steven Staples sstap...@mnsi.net wrote: From: Tim Dunphy [mailto:bluethu...@gmail.com] Sent: September 13, 2012 7:26 AM We are looking for programmers and developers to create a world wide system. Is it bigger than a

Re: [PHP] extract Occurrences AFTER ... and before -30-

2012-08-20 Thread Robert Cummings
On 12-08-21 12:32 AM, John Taylor-Johnston wrote: This is usually a first-year CS programming problem (word frequency counts) complicated a little bit by needing to extract the text. You've started off fine, stripping tags, converting to lower case, you'll want to either convert or strip HTML

Re: [PHP] extract Occurrences AFTER ... and before -30-

2012-08-20 Thread Robert Cummings
On 12-08-21 01:11 AM, Robert Cummings wrote: On 12-08-21 12:32 AM, John Taylor-Johnston wrote: This is usually a first-year CS programming problem (word frequency counts) complicated a little bit by needing to extract the text. You've started off fine, stripping tags, converting to lower

Re: [PHP] APC expunge notices

2012-08-18 Thread Robert Cummings
On 12-08-17 05:22 PM, Nathan Nobbe wrote: Hi everyone, I'd like to see what other folks think about the idea of having APC provide a E_WARNING or E_NOTICE when it has to expunge the cache. Ideally, this would include the amount of memory allocated in the error message. The idea here is to

Re: [PHP] Need to have form protection techniques

2012-08-17 Thread Robert Cummings
On 12-08-17 10:15 AM, Tedd Sperling wrote: On Aug 17, 2012, at 10:09 AM, Daniel Brown danbr...@php.net wrote: On Fri, Aug 17, 2012 at 12:05 AM, Ansry User 01 yrsna.res...@gmail.com wrote: I need to know the forms validity techniques for Php. This will probably take a while to absorb, so

Re: [PHP] Need to have form protection techniques

2012-08-17 Thread Robert Cummings
On 12-08-17 11:14 AM, Tedd Sperling wrote: On Aug 17, 2012, at 10:42 AM, Robert Cummings rob...@interjinn.com wrote: On Fri, Aug 17, 2012 at 12:05 AM, Ansry User 01 yrsna.res...@gmail.com wrote: I need to know the forms validity techniques for Php. This will probably take a while

Re: [PHP] Need to have form protection techniques

2012-08-17 Thread Robert Cummings
On 12-08-17 10:59 AM, Al wrote: On 8/17/2012 10:42 AM, Robert Cummings wrote: On 12-08-17 10:15 AM, Tedd Sperling wrote: On Aug 17, 2012, at 10:09 AM, Daniel Brown danbr...@php.net wrote: On Fri, Aug 17, 2012 at 12:05 AM, Ansry User 01 yrsna.res...@gmail.com wrote: I need to know

Re: [PHP] PHP session variables

2012-08-15 Thread Robert Cummings
On 12-08-15 03:19 PM, Tedd Sperling wrote: Rob: Again thanks. Sorry, I totally missed your point. In my defense I commonly use the value returned from microtime() as a string and not as a float. The code that followed my microtime( false ); demo broke the string and recombined it into a

Re: [PHP] PHP session variables

2012-08-14 Thread Robert Cummings
On 12-08-14 10:41 AM, Tedd Sperling wrote: On Aug 13, 2012, at 10:59 AM, Robert Cummings rob...@interjinn.com wrote: On 12-08-10 04:42 PM, Tedd Sperling wrote: On Aug 10, 2012, at 1:21 PM, Ege Sertçetin sertce...@itu.edu.tr wrote: Hi. My question will maybe out of topic, I'm sorry. How can

Re: [PHP] Repeated New Object Requests

2012-08-13 Thread Robert Cummings
On 12-08-10 02:24 PM, Al wrote: Off the subject a bit. What does PHP do with repeated new classes, e.g. $mime = new Mail_mime Are they simply ignored or are additional new instances created. PHP won't let you duplicate function names. Hi Al, New isn't defining a class, it's a request for

Re: [PHP] PHP session variables

2012-08-13 Thread Robert Cummings
On 12-08-10 04:42 PM, Tedd Sperling wrote: On Aug 10, 2012, at 1:21 PM, Ege Sertçetin sertce...@itu.edu.tr wrote: Hi. My question will maybe out of topic, I'm sorry. How can you know that one way will be much slower than other one? I mean, how can I learn which function is faster before I

Re: [PHP] Reading class variable value always returns NULL

2012-08-13 Thread Robert Cummings
On 12-08-12 08:32 AM, Reto Kaiser wrote: Hi, So I have this strange situation where I assign a classvariable a value, but when I read the value it is NULL. The class has one variable declared: = class A { private $_cookies; } = That is a private instance variable NOT

Re: [PHP] Too many open files

2012-08-10 Thread Robert Cummings
On 12-08-09 08:01 PM, Al wrote: Getting Too many open files error when processing an email batch process. The batch size is actually rather small and the email text is small likewise. I've looked extensively and can't find more than about 100 files that could be open. All my fetching is with

Re: [PHP] Too many open files

2012-08-10 Thread Robert Cummings
On 12-08-10 02:49 AM, Matijn Woudt wrote: On Fri, Aug 10, 2012 at 5:36 AM, Jim Lucas li...@cmsws.com wrote: On 8/9/2012 5:01 PM, Al wrote: Getting Too many open files error when processing an email batch process. I've looked extensively and can't find more than about 100 files that could be

Re: [PHP] XML/PHP web service

2012-08-08 Thread Robert Cummings
Hi Philip, Tell them they can POST submissions to: https://www.acme.com/xml-submission Then tell them what fields are supported. Presumably you will support the following POST fields as a minimum (as if they were on a form): username password xml Your handler should also

Re: [PHP] why is (intval('444-44444') == '444-44444') EQUAL??!

2012-06-21 Thread Robert Cummings
On 12-06-21 10:27 PM, Daevid Vincent wrote: Huh? Why is this equal??! php $id = '444-4'; php var_dump($id, intval($id)); string(9) 444-4 int(444) php if (intval($id) == $id) echo 'equal'; else echo 'not equal'; equal or in other

Re: [PHP] Function size

2012-05-29 Thread Robert Cummings
On 12-05-29 07:17 AM, Stuart Dallas wrote: I wasn't going to respond to this thread because I think it's a largely ridiculous topic, but some of the responses have scared me. Sir Cummings (hopefully) sarcastic response about using a 5px font size demonstrated how daft it is to base function

Re: [PHP] Function size

2012-05-23 Thread Robert Cummings
On 12-05-23 12:15 PM, Tedd Sperling wrote: On May 23, 2012, at 11:49 AM, shiplu wrote: On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: When number of lines becomes the criteria of function size? Wouldn't it depends on the task the function is doing? You missed the point. Of

Re: [PHP] To ? or not to ?

2012-04-04 Thread Robert Cummings
On 12-04-04 01:14 AM, Donovan Brooke wrote: Robert Cummings wrote: [snip] Could using ob_start and ob_end_flush eliminate the ambiguity of whether or not to use '?'? In the generally recommended case of don't use them at the end of your file... where's the ambiguity? http://www.php.net

Re: [PHP] To ? or not to ?

2012-04-04 Thread Robert Cummings
On 12-04-04 02:42 PM, Lester Caine wrote: Tedd Sperling wrote: Let me start a religious war -- should one end their scripts with ? or not? Just as long as no one proposes making leaving out compulsory ;) While I can sort of understand the logic when the file is all php and just has an

Re: [PHP] To ? or not to ?

2012-04-04 Thread Robert Cummings
On 12-04-04 04:40 PM, Lester Caine wrote: ( forget email addres :( ) Robert Cummings wrote: On 12-04-04 02:42 PM, Lester Caine wrote: Tedd Sperling wrote: Let me start a religious war -- should one end their scripts with ? or not? Just as long as no one proposes making leaving out

Re: [PHP] To ? or not to ?

2012-04-03 Thread Robert Cummings
On 12-04-03 05:29 PM, Tedd Sperling wrote: Hi gang: Let me start a religious war -- should one end their scripts with ? or not? After years of never having a problem with ending any of my scripts with ?, I found that several students in my class had scripts that did not produce the desired

Re: [PHP] To ? or not to ?

2012-04-03 Thread Robert Cummings
On 12-04-03 11:39 PM, Donovan Brooke wrote: Stuart Dallas wrote: [snip] Usually when setting headers after such a script has been included when output buffering is turned off. Personally I never put the closing ? in if it's at the end of the file because it's unnecessary and can cause

Re: [PHP] Thinking out loud - a continuation...

2012-04-02 Thread Robert Cummings
On 12-04-02 04:36 PM, Jay Blanchard wrote: [snip] function getTiersJson( $company ) { $tiers = getTiers( $company ); $json = JSON_encode( $tiers ); } $tiersJson = getTiersJson( 1 ); ? This will output JSON with the following structure: [/snip] OK, now I know I am being dense - but

Re: [PHP] Thinking out loud - a continuation...

2012-03-30 Thread Robert Cummings
On 12-03-27 11:11 AM, Jay Blanchard wrote: [snip]On 3/27/2012 12:21 AM, Robert Cummings wrote: [-- SNIP --] Essentially, entries at the root and entries for the children are just auto indexed array items but the actual entries in those arrays retain the associative index structure

Re: [PHP] Need PHP Web Developer in So Cal

2012-03-28 Thread Robert Cummings
On 12-03-28 12:20 PM, Paul Scott wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28/03/2012 18:04, Michael Frankel wrote: Hi - I am looking for a reliable, experienced PHP / Web developer or development company to assist me with one of my long-time clients. I need someone who has

Re: [PHP] Thinking out loud - a continuation...

2012-03-26 Thread Robert Cummings
On 12-03-26 02:12 PM, Jay Blanchard wrote: [snip] This is one of those projects. It is apparently going to be trying every step of the way. [/snip] I was proven right this morning after all of Robert's good work and what I had added to make this work. It turns out that the one service who

Re: [PHP] Thinking out loud - a continuation...

2012-03-26 Thread Robert Cummings
On 12-03-26 05:14 PM, Jay Blanchard wrote: [snip] *lol* No worries... it's all about solving problems :) [/snip] the other folks who needed to consume the JSON have all done so successfully today - just this one. The guy who runs it was plenty arrogant when I discussed with him. He is the

Re: [PHP] Thinking out loud - a continuation...

2012-03-26 Thread Robert Cummings
On 12-03-26 06:52 PM, Jay Blanchard wrote: [snip] Did you end up with a satisfactory output? It's not overly difficult to generate an array instead of an object. [/snip] I did for all but this one instance. Are you saying that it would be easy to make of the children arrays? I thought they

Re: [PHP] Thinking out loud - a continuation...

2012-03-26 Thread Robert Cummings
On 12-03-26 07:05 PM, Jay Blanchard wrote: [snip] On Mar 26, 2012, at 5:58 PM, Robert Cummings wrote: On 12-03-26 06:52 PM, Jay Blanchard wrote: [snip] Did you end up with a satisfactory output? It's not overly difficult to generate an array instead of an object. [/snip] I did for all

Re: [PHP] foreach weirdness

2012-03-24 Thread Robert Cummings
On 12-03-24 11:15 AM, Al wrote: On 3/23/2012 10:11 PM, Robert Cummings wrote: On 12-03-23 06:30 PM, Simon Schick wrote: 2012/3/23 Robert Cummingsrob...@interjinn.com On 12-03-23 11:16 AM, Arno Kuhl wrote: it still does not produce the correct result: 0 1 3 6 10 15 21 0 1 3 6 10 15 15

Re: [PHP] Thinking out loud - a continuation...

2012-03-24 Thread Robert Cummings
On 12-03-24 08:41 AM, Jay Blanchard wrote: On Mar 23, 2012, at 11:24 PM, Robert Cummings wrote: On 12-03-23 05:41 PM, Jay Blanchard wrote: [-- DELETED GARBAGE --] :) I just realized... I've been stuck in a thinking rut. I latched onto one solution that works well in some case but didn't

Re: [PHP] Thinking out loud - a continuation...

2012-03-24 Thread Robert Cummings
On 12-03-24 01:09 PM, Jay Blanchard wrote: [snip]The crux of it is: $focus =$focus[$name]; [/snip] It works as I expect so far. All I have to do is figure out how to make the element a name: element in the JSON. for instance an element would look like this { name: Bob,

Re: [PHP] Thinking out loud - a continuation...

2012-03-24 Thread Robert Cummings
On 12-03-24 04:11 PM, Jay Blanchard wrote: [snip] One more little tweak may be required. The JSON looks like this {Executives and Management:{name:Executives and Management,children:{ The first part {Executives and Management: needs to be removed. I think I know what to do. [/snip] It has

Re: [PHP] foreach weirdness

2012-03-23 Thread Robert Cummings
On 12-03-23 11:16 AM, Arno Kuhl wrote: The following snippet is copied from the php manual: foreach ($arr as $key = $value) { echo Key: $key; Value: $valuebr /\n; } I've always used the foreach loop that way. But recently I started hitting some really odd problems. See this following

Re: [PHP] Thinking out loud - a continuation...

2012-03-23 Thread Robert Cummings
On 12-03-23 02:08 PM, Jay Blanchard wrote: [snip] Your data structure doesn't appear to be very ummm normalized... Nonetheless, the following should do it: [/snip] You're absolutely correct. Unfortunately I am not the designer and cannot really do anything about it. I just have to work with

Re: [PHP] Thinking out loud - a continuation...

2012-03-23 Thread Robert Cummings
On 12-03-23 03:17 PM, Jay Blanchard wrote: [snip] $json = JSON_encode( $root ); [/snip] Update on my test. This works perfectly Robert - thank you very much! But there is one small problem that I am trouble-shooting: it only goes one layer and doesn't progress any further. I suspect it

Re: [PHP] Thinking out loud - a continuation...

2012-03-23 Thread Robert Cummings
On 12-03-23 03:22 PM, Jay Blanchard wrote: [snip] $json = JSON_encode( $root ); [/snip] Update on my test. This works perfectly Robert - thank you very much! But there is one small problem that I am trouble-shooting: it only goes one layer and doesn't progress any further. I suspect it

Re: [PHP] foreach weirdness

2012-03-23 Thread Robert Cummings
On 12-03-23 02:04 PM, Arno Kuhl wrote: Hi Rob I'm using php 5.3.5. What result do you get when you run this code? I haven't checked any bug reports, I'll google to see where I would do that. Your code gets round the problem, but I was specifically referring to the use of foreach with its

Re: [PHP] Thinking out loud - a continuation...

2012-03-23 Thread Robert Cummings
On 12-03-23 03:28 PM, Jay Blanchard wrote: On Mar 23, 2012, at 2:25 PM, Robert Cummings wrote: On 12-03-23 03:17 PM, Jay Blanchard wrote: [snip] $json = JSON_encode( $root ); [/snip] Update on my test. This works perfectly Robert - thank you very much! But there is one small problem

Re: [PHP] Thinking out loud - a continuation...

2012-03-23 Thread Robert Cummings
On 12-03-23 03:52 PM, Jay Blanchard wrote: [snip] SELECT DISTINCT `TIER3DATA` AS id, `TIER2DATA` AS parentId FROM `POSITION_SETUP` WHERE `COMPANY_ID` = '3' AND `TIER2DATA` IN ('Executives and Management','Professionals','Technicians','Craft Workers-Skilled','Operatives','Contractor','Sales

Re: [PHP] foreach weirdness

2012-03-23 Thread Robert Cummings
On 12-03-23 06:30 PM, Simon Schick wrote: 2012/3/23 Robert Cummingsrob...@interjinn.com On 12-03-23 11:16 AM, Arno Kuhl wrote: it still does not produce the correct result: 0 1 3 6 10 15 21 0 1 3 6 10 15 15 This looks like a bug... the last row should be the same. What version of PHP are

Re: [PHP] Thinking out loud - a continuation...

2012-03-23 Thread Robert Cummings
On 12-03-23 05:41 PM, Jay Blanchard wrote: [-- DELETED GARBAGE --] :) I just realized... I've been stuck in a thinking rut. I latched onto one solution that works well in some case but didn't fully examine the nuances of your own scenario. Given the way you are creating your hierarchy you

Re: [PHP] Thinking out loud - a continuation...

2012-03-22 Thread Robert Cummings
On 12-03-22 11:28 AM, Jay Blanchard wrote: [snip] ...stuff... [/snip] Here is the explanation for what I have done and what I am trying to do - (based on the customer's request). A week or so ago I took a set of queries from one table and made them into an unordered list. This will be

Re: [PHP] Thinking out loud - a continuation...

2012-03-22 Thread Robert Cummings
On 12-03-22 11:58 AM, Jay Blanchard wrote: [snip] Fix this code... I've come across codebases that did this specific type of nested querying and it resulted in 1 queries to the database on every page. Instead, create a layered approach: 1. Select your root elements. 2. Loop over

Re: [PHP] Thinking out loud - a continuation...

2012-03-22 Thread Robert Cummings
On 12-03-22 11:58 AM, Jay Blanchard wrote: [snip] Fix this code... I've come across codebases that did this specific type of nested querying and it resulted in 1 queries to the database on every page. Instead, create a layered approach: 1. Select your root elements. 2. Loop over

Re: [PHP] Thinking out loud - a continuation...

2012-03-22 Thread Robert Cummings
On 12-03-22 12:34 PM, Jay Blanchard wrote: [snip] Sorry, I just realized I didn't make the optimization explicitly obvious... when I say Select the children I mean to select them using an IN( id1, id2, id3 ) clause instead of a query for each. This is why we build the array of parent IDs (also

Re: [PHP] Thinking out loud - a continuation...

2012-03-22 Thread Robert Cummings
On 12-03-22 01:06 PM, Jay Blanchard wrote: On 3/22/2012 11:40 AM, Robert Cummings wrote: What's the field for which you are selecting data? I've written this up as a parent/child relationship but it works for data/sub-data relationships also. SELECT itemId, otherData FROM table WHERE some

Re: [PHP] Thinking out loud - a continuation...

2012-03-22 Thread Robert Cummings
On 12-03-22 03:54 PM, Jay Blanchard wrote: [snip] At one point you indicated all the data was coming from one table. Can you send me the table fields and indicate which fields are used to determine parent child relationship? Also 2 sample rows of data which have a relationship would be

Re: [PHP] set_error_handler() only triggering every Nth time

2012-03-22 Thread Robert Cummings
On 12-03-22 03:57 PM, Daevid Vincent wrote: Resending since I didn't get a single reply. Maybe it got lost? -Original Message- Sent: Tuesday, March 13, 2012 5:58 PM I am implementing a custom error handler and started noticing some bizarre behavior. Every Nth time I refresh the page, I

Re: [PHP] Thinking out loud - a continuation...

2012-03-21 Thread Robert Cummings
On 12-03-21 03:52 PM, Jay Blanchard wrote: [snip] I would, yes, but that's not the point. Is Anna single? I'm ready to trade Debs in for a newer model. [/snip] I'm thinking that Debs would upset your array if you traded her in. Anyhow, I have spent the last hour trying to output valid

Re: [PHP] Thinking out loud - a continuation...

2012-03-21 Thread Robert Cummings
On 12-03-21 04:42 PM, Jay Blanchard wrote: [snip] Why are you trying to create the JSON structure in parts? When I have nesting like this i build the full nested structure as PHP, then export to JSON. [/snip] As PHP? An array? Yeah sorry... you know what I meant ;) Cheers, Rob. -- E-Mail

Re: [PHP] CMS identification

2012-03-18 Thread Robert Cummings
On 12-03-18 06:42 PM, Stuart Dallas wrote: On 18 Mar 2012, at 22:32, Alain Roger wrote: ok so here it is: http://i220.photobucket.com/albums/dd277/alainroger/cms-login.png Pass, not one I'm familiar with and a Google Image search for cms login doesn't show anything similar. If I were you

Re: [PHP] Arrays: Comma at end?

2012-02-08 Thread Robert Cummings
On 12-02-07 02:50 PM, Micky Hulse wrote: Was there ever a time when having a comma at the end of the last array element was not acceptable in PHP? I just did a few quick tests: https://gist.github.com/1761490 ... and it looks like having that comma ain't no big deal. I can't believe that I

Re: [PHP] Arrays: Comma at end?

2012-02-08 Thread Robert Cummings
On 12-02-08 01:12 PM, Micky Hulse wrote: On Wed, Feb 8, 2012 at 10:08 AM, Robert Cummingsrob...@interjinn.com wrote: JavaScript in Internet Crapsplorer spanks you on the bottom every time you have a trailing comma in a JS array. That may be where you picked up the aversion. On Wed, Feb 8,

Re: [PHP] Long Live GOTO

2012-02-06 Thread Robert Cummings
On 12-02-06 04:07 AM, Tim Streater wrote: On 06 Feb 2012 at 07:47, Adam Richardsonsimples...@gmail.com wrote: While not purely focused on PHP, I toss this out to the group because I believe there are some novel, interesting points regarding the potential benefits of using the goto construct

Re: [PHP] Long Live GOTO

2012-02-06 Thread Robert Cummings
On 12-02-06 11:58 AM, Tim Streater wrote: On 06 Feb 2012 at 09:48, Adam Richardsonsimples...@gmail.com wrote: On Mon, Feb 6, 2012 at 4:25 AM, Adam Richardsonsimples...@gmail.comwrote: On Mon, Feb 6, 2012 at 4:07 AM, Tim Streatert...@clothears.org.uk wrote: I disagree that the nested

Re: [PHP] Re: Long Live GOTO

2012-02-06 Thread Robert Cummings
On 12-02-06 11:35 AM, Alain Williams wrote: On Mon, Feb 06, 2012 at 09:28:10AM -0700, Larry Martell wrote: On Mon, Feb 6, 2012 at 9:23 AM, Alain Williamsa...@phcomp.co.uk wrote: If I survey my code I find that I use one GOTO in about 4,000 lines of code - that I do not find excessive.

Re: [PHP] Reading only RGB portion of an image, file_get_conents minus file headers etc

2012-01-23 Thread Robert Cummings
On 12-01-23 01:32 PM, Alex Nikitin wrote: If you don't mind me asking, if you want performance, which is kind of essential if you are processing a large number of files, why are you doing it in PHP? -- The trouble with programmers is that you can never tell what a programmer is doing until it’s

Re: [PHP] Reading only RGB portion of an image, file_get_conents minus file headers etc

2012-01-23 Thread Robert Cummings
On 12-01-23 09:29 PM, Alex Nikitin wrote: Have you done image processing? In my experience, with image generation, photography and processing, typically you are bound by resources when processing large amount of files than your connection, or sometimes even disk io. It really depends on what

Re: [PHP] number_format

2011-12-19 Thread Robert Cummings
On 11-12-19 11:08 AM, Bastien Koert wrote: On Mon, Dec 19, 2011 at 9:19 AM, Floyd Reslerfres...@adex-intl.com wrote: In the previous version of PHP we were using, I could pass a string to number_format and it would just change it to a 0 without complaint. With 5.3.6 I get an expects double

Re: [PHP] Re: Preferred Syntax

2011-12-18 Thread Robert Cummings
On 11-12-17 09:42 AM, Eric Butera wrote: Hi Adam, Thanks for the reply, noted! I was coming from the angle that I've had to deal with a lot of code that is 2000 lines of php/html/javascript inside heredocs, mixed quote escaping, etc. I was hoping to prevent that from becoming a new thing in

Re: [PHP] Re: Preferred Syntax

2011-12-15 Thread Robert Cummings
On 11-12-15 02:50 AM, Ross McKay wrote: On Wed, 14 Dec 2011 07:59:46 -0500, Rick Dwyer wrote: Can someone tell me which of the following is preferred and why? echo a style='text-align:left;size:14;font-weight:bold' href='/ mypage.php/$page_id'$page_name/abr; echo a

Re: [PHP] Preferred Syntax

2011-12-14 Thread Robert Cummings
On 11-12-14 01:10 PM, David Harkness wrote: On Wed, Dec 14, 2011 at 4:59 AM, Rick Dwyerrpdw...@earthlink.net wrote: Can someone tell me which of the following is preferred and why? echo a style='text-align:left;size:**14;font-weight:bold' href='/mypage.php/$page_id'$**page_name/abr;

Re: [PHP] How to use a variable variable with an array

2011-12-14 Thread Robert Cummings
On 11-12-14 01:11 AM, Laruence wrote: On Wed, Dec 14, 2011 at 9:27 AM, Nils Leidecknils.leid...@leidex.net wrote: Hi Al, many thanks for your feedback. Unfortunately I don’t know the deepness of the array so I can’t use the nested foreach() idea :-( Let me try to simplify my question (which

Re: [PHP] inotify

2011-12-08 Thread Robert Cummings
Not to my knowledge. On 11-12-08 10:52 AM, Floyd Resler wrote: Is there any way to get who moved a file, deleted a file, etc. from inotify? I search and couldn't find a way but thought someone on the list might know. Thanks! Floyd -- E-Mail Disclaimer: Information contained in this

Re: [PHP] Sniping on the List

2011-11-19 Thread Robert Cummings
On 11-11-19 03:14 AM, Lester Caine wrote: Robert Cummings wrote: It's Friday... traditionally content anal-ness has been somewhat disregarded on this day. Need one go through the archives to see if you're being a tad hypocritical? Although it only seems to be this latest thread that seems

Re: [PHP] Sniping on the List

2011-11-18 Thread Robert Cummings
On 11-11-18 05:15 AM, Tim Streater wrote: On 18 Nov 2011 at 05:40, Robert Cummingsrob...@interjinn.com wrote: without a proof it's just farts in the wind :) No more valid than a theory of creation or the big ass spaghetti thingy majingy dude. Folded The theory of creation is not a theory.

Re: [PHP] Sniping on the List

2011-11-18 Thread Robert Cummings
On 11-11-18 10:03 AM, Curtis Maurand wrote: Robert Cummings wrote: Robert Cummings wrote: Given the discussion, I think the following is in order: BAZINGA * 2 And what does any of this have to do with PHP? It's time to end this thread. It's Friday... traditionally content anal-ness

Re: [PHP] Sniping on the List

2011-11-17 Thread Robert Cummings
On 11-11-17 11:33 AM, HallMarc Websites wrote: To all: Okay, so now that we have had people reply, here's my take. The Unix timestamp started on 01 Jan 1970 00:00:00 + -- and that was a Thursday. The second before (i.e., 31 December, 1969 23:59:59:59 + ) was null, which was

Re: [PHP] Sniping on the List

2011-11-17 Thread Robert Cummings
On 11-11-17 06:24 PM, Fredric L. Rice wrote: Consider this -- do you think the second before the Big Bang was negative or null? I don't know. There's no point concerning ourselves with unanswerable questions. The question itself is a logical absurdity since there was no time prior to the Big

Re: [PHP] Sniping on the List

2011-11-17 Thread Robert Cummings
On 11-11-18 12:40 AM, Robert Cummings wrote: On 11-11-17 06:24 PM, Fredric L. Rice wrote: Consider this -- do you think the second before the Big Bang was negative or null? I don't know. There's no point concerning ourselves with unanswerable questions. The question itself is a logical

Re: [PHP] {} forms

2011-11-16 Thread Robert Cummings
On 11-11-16 09:27 AM, Richard Quadling wrote: On 16 November 2011 13:56, Tim Streatert...@clothears.org.uk wrote: I'm looking at the source of a web sockets server and I see these various forms: ws://{$host}{$path} HTTP/1.1 ${status}\r\n Are these simply equivalent to: ws:// . $host .

Re: [PHP] Variable question

2011-10-01 Thread Robert Cummings
On 11-10-01 02:03 PM, Mike Mackintosh wrote: On Oct 1, 2011, at 1:59 PM, Ron Piggott wrote: If $correct_answer has a value of 3 what is the correct syntax needed to use echo to display the value of $trivia_answer_3? I know this is incorrect, but along the lines of what I am wanting to do:

Re: [PHP] Re: Repetitive answers . . .

2011-09-16 Thread Robert Cummings
On 11-09-15 09:31 PM, Joshua Stoutenburg wrote: class baboon { $ammo = ''; public __construct($ammo) { $this-ammo = $ammo; } public function flingAt($target) { $target-flingAlert($this-ammo); } } $me = new baboon($information); $you = new

Re: [PHP] Episode 2 - All The Cool Kids Use Ruby

2011-09-16 Thread Robert Cummings
On 11-09-16 02:30 PM, Daevid Vincent wrote: http://www.youtube.com/watch?v=5GpOfwbFRcs LOLercopter That's just fantastic! Have a great weekend. Cheers, Rob. -- E-Mail Disclaimer: Information contained in this message and any attached documents is considered confidential and legally

Re: [PHP] What would you like to see in most in a text editor?

2011-09-13 Thread Robert Cummings
On 11-09-13 03:56 PM, Brad Huskins wrote: Hello all you php coders out there, I'm doing an Open Source text editor (just a hobby) that's designed for PHP developers and is accessible through the web. This has been stewing for a while, and has gotten to the point where I can use it for my own

Re: [PHP] Re: Repetitive answers . . .

2011-09-09 Thread Robert Cummings
On 11-09-09 02:19 PM, Joshua Stoutenburg wrote: Is there a way to reconfigure gmail settings to prevent this? Yes, just filter all PHP mail to junk. But in all reality, I can't imagine an email filter, short of genius AI, that could determine that one message was the best answer and then

Re: [PHP] Re: Repetitive answers . . .

2011-09-09 Thread Robert Cummings
On 11-09-09 02:24 PM, George Langley wrote: On 2011-09-09, at 11:34 AM, Marc Guay wrote: That low-hanging fruit is too hard for some to resist... --- Phishing is a art. Did anyone notice it's Friday? Oblig: http://www.youtube.com/watch?v=sUntx0pe_qI Cheers, Rob. -- E-Mail

Re: [PHP] Code should be selv-maintaining!

2011-09-01 Thread Robert Cummings
On 11-08-31 08:20 PM, Tedd Sperling wrote: On Aug 30, 2011, at 3:09 PM, Robert Cummings wrote: On 11-08-30 11:36 AM, Richard Quadling wrote: On 30 August 2011 15:04, Tedd Sperlingtedd.sperl...@gmail.com wrote: To all: I prefer the Whitesmiths style: http://rebel.lcc.edu/sperlt/citw229

Re: [PHP] Code should be selv-maintaining!

2011-09-01 Thread Robert Cummings
On 11-09-01 01:44 AM, Ross McKay wrote: On Tue, 30 Aug 2011 10:04:54 -0400, Tedd Sperling wrote: I prefer the Whitesmiths style: http://rebel.lcc.edu/sperlt/citw229/brace-styles.php But style is really up to the individual -- what works best for you is the best (unless it's a team effort or

Re: [PHP] Code should be selv-maintaining!

2011-09-01 Thread Robert Cummings
On 11-09-01 02:39 AM, Ross McKay wrote: Robert Cummings wrote: That's because JavaScript is broken in some ways. As much as I like JavaScript, some parts of the language were thrown together by flinging crap at a fan and seeing what sticks to the wall... this being a prime example. Sounds

Re: [PHP] Code should be selv-maintaining!

2011-08-30 Thread Robert Cummings
On 11-08-30 11:36 AM, Richard Quadling wrote: On 30 August 2011 15:04, Tedd Sperlingtedd.sperl...@gmail.com wrote: To all: I prefer the Whitesmiths style: http://rebel.lcc.edu/sperlt/citw229/brace-styles.php But style is really up to the individual -- what works best for you is the best

  1   2   3   4   5   6   7   8   9   10   >