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 > 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 i

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 developm

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 an

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 th

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 wr

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 = mysql_qu

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. Ang

[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 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" > wrote: > > > I'm

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 > 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 i

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" wrote: > I'm looking for an 'unless' statement, but as far as I can tell, > PHP doesn't h

[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

[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 array.

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 ... setFormat('gif'); $tmp->setImageDelay($delay*100); $im->addImage($tmp); $tmp->destroy(); unlink($wkImg); } $im->writeImages($outPath, true); $im->destroy();

[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! --

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 cas

[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 wor

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.

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 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

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

2013-03-11 Thread Ashley Sheridan
Gary 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 to keep searching for

Re: [PHP] XML to Array

2013-03-11 Thread Bastien Koert
On Sun, Mar 10, 2013 at 6:28 PM, Karl DeSaulniers 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. >>> I

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

2013-03-11 Thread ma...@behnke.biz
> Gary 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 --keep-vcs typo3/flo