php-general Digest 11 Mar 2013 12:12:59 -0000 Issue 8157

2013-03-11 Thread php-general-digest-help
php-general Digest 11 Mar 2013 12:12:59 - Issue 8157 Topics (messages 320454 through 320457): Does Scope-Resolution Operator Always Follow 'parent'? 320454 by: Eric James Michael Ritz Re: Generating CRUD code for normalized db 320455 by: Gary 320456 by: Gary

php-general Digest 12 Mar 2013 02:50:38 -0000 Issue 8158

2013-03-11 Thread php-general-digest-help
php-general Digest 12 Mar 2013 02:50:38 - Issue 8158 Topics (messages 320458 through 320479): Re: XML to Array 320458 by: Bastien Koert 320470 by: Karl DeSaulniers 320479 by: Karl DeSaulniers Re: Generating CRUD code for normalized db 320459 by: Ashley

Re: [PHP] Re: Generating CRUD code for normalized db

2013-03-11 Thread ma...@behnke.biz
Gary listgj-phpgene...@yahoo.co.uk hat am 11. März 2013 um 10:10 geschrieben: ma...@behnke.biz wrote: FLOW3 might be worth a look. TYPO3 with inline relational records. Seems to be in a similar state to yii as regards usability and documentation. = composer create-project --dev

Re: [PHP] XML to Array

2013-03-11 Thread Bastien Koert
On Sun, Mar 10, 2013 at 6:28 PM, Karl DeSaulniers k...@designdrumm.com wrote: On Mar 10, 2013, at 6:03 AM, richard gray wrote: On 10/03/2013 11:47, Karl DeSaulniers wrote: Hi Guys, I am hoping someone can guide me or help me fix this issue. I have been lost in the code for some time now.

Re: [PHP] Re: Generating CRUD code for normalized db

2013-03-11 Thread Ashley Sheridan
Gary listgj-phpgene...@yahoo.co.uk wrote: Ashley Sheridan wrote: In any case, you could probably take something you like from another framework if you have the time/inclination/capability. I honestly think I am simply going to write the shit myself. The CRUD pages, I mean. I see no reason

Re: [PHP] Re: Generating CRUD code for normalized db

2013-03-11 Thread Jim Giner
On 3/11/2013 10:14 AM, Ashley Sheridan wrote: Gary listgj-phpgene...@yahoo.co.uk wrote: Ashley Sheridan wrote: In any case, you could probably take something you like from another framework if you have the time/inclination/capability. I honestly think I am simply going to write the shit

Re: [PHP] Re: Generating CRUD code for normalized db

2013-03-11 Thread Samuel Lopes Grigolato
If you don't appreciate Open Source solutions, why are you losing time on a Open Source Project Mailing List? Go pay (a lot) for a handholding framework and be happy =), just don't demotivate the ones who bring free software to reality, even if the free software is not as good as you would like.

[PHP] Re: Generating CRUD code for normalized db

2013-03-11 Thread Jim Giner
Gary, Until I read this post of yours I never knew what CRUD stood for, let alone knew that such an acronym was even needed in the world. If you are complaining about not being able to find software written to handle Creating, Reading, Updating and Deleting data in a table or tables that

Re: [PHP] Does Scope-Resolution Operator Always Follow 'parent'?

2013-03-11 Thread David Harkness
Hi Eric, On Sun, Mar 10, 2013 at 8:21 PM, Eric James Michael Ritz lobbyjo...@gmail.com wrote: I have a question about the `parent` keyword: is there any valid situation where it can appear without the `::` operator following? I wouldn't have thought it possible, but I just found one case

[PHP] Imagick morphImages

2013-03-11 Thread Leonard Burton
HI, *Imagick::morphImages* ( int $number_frames ) http://php.net/manual/en/imagick.morphimages.php Would someone please reply with how to add the two images for this? None of the search results come back with anything other than the auto-generated info on the imagick class. Many Thanks!

FW: [PHP] Imagick morphImages

2013-03-11 Thread Jen Rasmussen
I found the following code here: https://gist.github.com/mywebpower/1035026 It appears 2 years old though ... ?php /** * GD+Imagick = morphing * * @param string $fromPath * @param string $toPath * @param string $outPath * @param integer $frame OPTIONAL * @param integer $delay OPTIONAL

[PHP] SPL RecursiveArrayIterator::offset(Un)Set has no effect on instance created with ArrayObject

2013-03-11 Thread NaMarPi
Hello All, It seems to me that an instance of RecursiveIteratorIterator with ArrayObject has no effect when calling RecursiveArrayIterator::offsetUnset or RecursiveArrayIterator::offsetSet methods. But everything works fine when the iterator is created with a json_decoded - json_encoded

[PHP] UNLESS Statement Equivalent

2013-03-11 Thread Angela Barone
I'm looking for an 'unless' statement, but as far as I can tell, PHP doesn't have one. Hopefully someone can help me rewrite my statement. In English, I want to say: always do something UNLESS these 3 conditions are met. The best I've been able to come up with in PHP

Re: [PHP] UNLESS Statement Equivalent

2013-03-11 Thread Jonathan Sundquist
Since you already have the return statement with the if statement the else isn't required. If those three statements are true you would exit the call any ways On Mar 11, 2013 4:33 PM, Angela Barone ang...@italian-getaways.com wrote: I'm looking for an 'unless' statement, but as far as I

Re: [PHP] XML to Array

2013-03-11 Thread Karl DeSaulniers
On Mar 11, 2013, at 8:22 AM, Bastien Koert wrote: On Sun, Mar 10, 2013 at 6:28 PM, Karl DeSaulniers k...@designdrumm.com wrote: On Mar 10, 2013, at 6:03 AM, richard gray wrote: On 10/03/2013 11:47, Karl DeSaulniers wrote: Hi Guys, I am hoping someone can guide me or help me fix this

Re: [PHP] UNLESS Statement Equivalent

2013-03-11 Thread Ashley Sheridan
On Mon, 2013-03-11 at 16:38 -0500, Jonathan Sundquist wrote: Since you already have the return statement with the if statement the else isn't required. If those three statements are true you would exit the call any ways On Mar 11, 2013 4:33 PM, Angela Barone ang...@italian-getaways.com

[PHP] Re: UNLESS Statement Equivalent

2013-03-11 Thread Maciek Sokolewicz
On 11-3-2013 22:32, Angela Barone wrote: I'm looking for an 'unless' statement, but as far as I can tell, PHP doesn't have one. Hopefully someone can help me rewrite my statement. In English, I want to say: always do something UNLESS these 3 conditions are met. The

Re: [PHP] UNLESS Statement Equivalent

2013-03-11 Thread Angela Barone
On Mar 11, 2013, at 2:38 PM, Jonathan Sundquist wrote: Since you already have the return statement with the if statement the else isn't required. If those three statements are true you would exit the call any ways I don't follow. The else contains the meat of the statement.

Re: [PHP] UNLESS Statement Equivalent

2013-03-11 Thread Jonathan Sundquist
What you have if ( ($current_page == $saved_page) and ($current_ip == $saved_ip) and ($current_dt ($saved_dt + 3600)) ) { return; } else { $query = UPDATE `table` SET `hits` = '$count', `agent` = '$agent', `ts` = '$date_time' WHERE `page` = '$page'; $result =

Re: [PHP] UNLESS Statement Equivalent

2013-03-11 Thread Angela Barone
On Mar 11, 2013, at 3:47 PM, Ashley Sheridan wrote: if ( !( ($current_page == $saved_page) and ($current_ip == $saved_ip) and ($current_dt ($saved_dt + 3600)) ) ) Hello Ash, This makes sense to me, but I can't get it to work, so I'm either not understanding it or I'm asking the

Re: [PHP] UNLESS Statement Equivalent

2013-03-11 Thread Jonathan Sundquist
Angela, the variable $current_page does not exist. so $curent_page does not equal $saved_page. Also the ! in front of the entire statement means that all of this is false. Since one items is true and not true = false Don't save is echoed out. If you are looking to save the results based on the

Re: [PHP] UNLESS Statement Equivalent

2013-03-11 Thread Angela Barone
On Mar 11, 2013, at 4:10 PM, Jonathan Sundquist wrote: the variable $current_page does not exist. That was my problem. :( I've been staring at this for too long. Too bad there's not a 'use strict' pragma. I would also suggest keeping with your original statement to return early and

Re: [PHP] UNLESS Statement Equivalent

2013-03-11 Thread Larry Garfield
On 3/11/13 6:25 PM, Angela Barone wrote: On Mar 11, 2013, at 4:10 PM, Jonathan Sundquist wrote: the variable $current_page does not exist. That was my problem. :( I've been staring at this for too long. Too bad there's not a 'use strict' pragma. There is. Always set your

Re: [PHP] XML to Array

2013-03-11 Thread Karl DeSaulniers
On Mar 11, 2013, at 8:22 AM, Bastien Koert wrote: On Sun, Mar 10, 2013 at 6:28 PM, Karl DeSaulniers k...@designdrumm.com wrote: On Mar 10, 2013, at 6:03 AM, richard gray wrote: On 10/03/2013 11:47, Karl DeSaulniers wrote: Hi Guys, I am hoping someone can guide me or help me fix this