RE: [PHP] Re: UNLESS Statement Equivalent

2013-03-12 Thread Ford, Mike
-Original Message- From: Maciek Sokolewicz [mailto:tula...@gmail.com] On Behalf Of Maciek Sokolewicz Sent: 11 March 2013 22:44 unless ( $a and $b ) = if ( ! ($a and $b) ) So in simple terms, just stick a ! (or the keyword not) in front of your expression, and you'll have

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

2013-03-12 Thread ma...@behnke.biz
Gary listgj-phpgene...@yahoo.co.uk hat am 11. März 2013 um 15:51 geschrieben: I and others have pointed you towards open source solutions, the fact you don't want to put any effort in to make them work for you is not because of the state of open source software. If you think that

Re: [PHP] Re: UNLESS Statement Equivalent

2013-03-12 Thread Sebastian Krebs
2013/3/12 Ford, Mike m.f...@leedsmet.ac.uk -Original Message- From: Maciek Sokolewicz [mailto:tula...@gmail.com] On Behalf Of Maciek Sokolewicz Sent: 11 March 2013 22:44 unless ( $a and $b ) = if ( ! ($a and $b) ) So in simple terms, just stick a ! (or the keyword

[PHP] Where do I report bugs/feature requests for Image magick ext

2013-03-12 Thread Carsten Jensen
As subject says, I'm having some trouble finding out where to report bugs/feature requests for the Image magick extension. Anyone would be so kind to point me in the right direction please? cheers Carsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Fwd: [PHP] Where do I report bugs/feature requests for Image magick ext

2013-03-12 Thread Camilo Sperberg
Begin forwarded message: From: Camilo Sperberg Subject: Re: [PHP] Where do I report bugs/feature requests for Image magick ext Date: March 12, 2013 1:40:09 PM GMT+01:00 To: Carsten Jensen to...@tomse.dk On Mar 12, 2013, at 1:13 PM, Carsten Jensen wrote: As subject says, I'm having

RE: [PHP] Re: UNLESS Statement Equivalent

2013-03-12 Thread Arno Kuhl
-Original Message- From: Ford, Mike [mailto:m.f...@leedsmet.ac.uk] Sent: 12 March 2013 10:51 AM To: PHP General Subject: RE: [PHP] Re: UNLESS Statement Equivalent unless ( $a and $b ) = if ( ! ($a and $b) ) So in simple terms, just stick a ! (or the keyword not) in front of your

RE: [PHP] Re: UNLESS Statement Equivalent

2013-03-12 Thread Arno Kuhl
-Original Message- From: Ford, Mike [mailto:m.f...@leedsmet.ac.uk] Sent: 12 March 2013 10:51 AM To: PHP General Subject: RE: [PHP] Re: UNLESS Statement Equivalent unless ( $a and $b ) = if ( ! ($a and $b) ) So in simple terms, just stick a ! (or the keyword not) in front of your

RE: [PHP] Re: UNLESS Statement Equivalent

2013-03-12 Thread Ford, Mike
-Original Message- From: Arno Kuhl [mailto:a...@dotcontent.net] Sent: 12 March 2013 13:04 Mike, I presume you're saying the precedence of the Boolean keyword operators is lower than the Boolean symbol operators, but if so then wouldn't there be less need for the parentheses? I

Re: Fwd: [PHP] Where do I report bugs/feature requests for Image magick ext

2013-03-12 Thread Carsten Jensen
On 03/12/2013 01:45 PM, Camilo Sperberg wrote: Begin forwarded message: From: Camilo Sperberg Subject: Re: [PHP] Where do I report bugs/feature requests for Image magick ext Date: March 12, 2013 1:40:09 PM GMT+01:00 To: Carsten Jensen to...@tomse.dk On Mar 12, 2013, at 1:13 PM, Carsten

Re: [PHP] Reflecting Constants.

2013-03-12 Thread Tomasz Sawicki
It would seem that without tokenising the class file, I'm sort of stuck with the solution I've got at the moment. Unless anyone has any ideas! I faced similar problem with constants when doing WSDL generator. In my case I wanted to extract constant description to include it in WSDL

[PHP] How can I make PHP CodeSniffer Fixer ignore the namespace declaration?

2013-03-12 Thread Norah Jones
I am using the sublime text 2 plugin for PHP Coding Standards Fixer. It is working fine, except for the fact that it considers the namespace invalid (it is in fact invalid and I'm okay with it). this errors halts the script from correcting the rest of the file. I get the following error:

Re: [PHP] How can I make PHP CodeSniffer Fixer ignore the namespace declaration?

2013-03-12 Thread ma...@behnke.biz
Norah Jones nh.jone...@gmail.com hat am 12. März 2013 um 15:18 geschrieben: I am using the sublime text 2 plugin for PHP Coding Standards Fixer. It is working fine, except for the fact that it considers the namespace invalid (it is in fact invalid and I'm okay with it). this errors halts the

Re: [PHP] Reflecting Constants.

2013-03-12 Thread Richard Quadling
On 12 March 2013 14:01, Tomasz Sawicki falun...@gmail.com wrote: It would seem that without tokenising the class file, I'm sort of stuck with the solution I've got at the moment. Unless anyone has any ideas! I faced similar problem with constants when doing WSDL generator. In my case I

[PHP] Mystery foreach error

2013-03-12 Thread Angela Barone
I've been getting the following error for awhile now, but I can't figure out why it's happening: Invalid argument supplied for foreach() in ... sample.php on line 377 Here's that portion of code: include(states_zipcodes.php); // Check if Zip Code matches from states_zipcodes

[PHP] Re: Mystery foreach error

2013-03-12 Thread Jim Giner
On 3/12/2013 3:45 PM, Angela Barone wrote: $zip_short = substr($zip, 0, 3); foreach ($states[$state] as $zip_prefix) { // -- line 377 if ($zip_prefix == $zip_short) { break; } else { $match = 'no'; } } I see the in the foreach. Since you are not modifying

Re: [PHP] XML to Array

2013-03-12 Thread Bastien
Bastien Koert On 2013-03-11, at 10:50 PM, Karl DeSaulniers k...@designdrumm.com wrote: 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

Re: [PHP] Mystery foreach error

2013-03-12 Thread Marco Behnke
Am 12.03.13 20:45, schrieb Angela Barone: I've been getting the following error for awhile now, but I can't figure out why it's happening: Invalid argument supplied for foreach() in ... sample.php on line 377 Here's that portion of code: include(states_zipcodes.php); //

Re: [PHP] Mystery foreach error

2013-03-12 Thread Angela Barone
On Mar 12, 2013, at 2:26 PM, Marco Behnke wrote: what is in $states? Looks like $states[$state] is not an array. Here's a sample: ?php $states = array( 'AL' = array( '350','351','352','353', ), 'AK' = array( '995','996','997','998','999', ), 'AZ' = array(

Re: [PHP] Mystery foreach error

2013-03-12 Thread Jim Giner
$states = array( 'AL' = array( '350','351','352','353', ), 'AK' = array( '995','996','997','998','999', ), 'AZ' = array( '850','851','852','853','854', ), ... 'WI' = array( '530','531','532', ), 'WY' = array( '820','821','822','823','824', ), ); ? Seeing

Re: [PHP] Mystery foreach error

2013-03-12 Thread Angela Barone
I think I figured it out. ?php $states = array( 'AL' = array( '350','351','352','353', ), 'AK' = array( '995','996','997','998','999', ), 'AZ' = array( '850','851','852','853','854', ), 'WI' = array( '530','531','532', ), 'WY' = array( '820','821','822','823','824',

Re: [PHP] Mystery foreach error

2013-03-12 Thread David Robley
Angela Barone wrote: I think I figured it out. ?php $states = array( 'AL' = array( '350','351','352','353', ), 'AK' = array( '995','996','997','998','999', ), 'AZ' = array( '850','851','852','853','854', ), 'WI' = array( '530','531','532', ), 'WY' = array(

Re: [PHP] Mystery foreach error

2013-03-12 Thread Angela Barone
On Mar 12, 2013, at 5:16 PM, David Robley wrote: Presumably there is a fixed list of State - those are US states? - so why not provide a drop down list of the possible choices? There is, but the problem must have been that if someone didn't select a State, $state was blank. I've