Re: [PHP] Weird Behaviour of Array

2012-03-04 Thread Stuart Dallas
On 4 Mar 2012, at 14:31, Ruwan Pathmalal wrote: > I confused with weird behaviour of array. Following is my script. > > $array = array( >'12_1'=>array( >56=>array( >23=>'23', >33=>'33') >)

Re: [PHP] Weird Behaviour of Array

2012-03-04 Thread Ashley Sheridan
On Sun, 2012-03-04 at 20:01 +0530, Ruwan Pathmalal wrote: > Hi People, > I confused with weird behaviour of array. Following is my script. > > $array = array( > '12_1'=>array( > 56=>array( > 23=>'23', > 33=>'

[PHP] Weird Behaviour of Array

2012-03-04 Thread Ruwan Pathmalal
Hi People, I confused with weird behaviour of array. Following is my script. array( 56=>array( 23=>'23', 33=>'33') ), '12_5'=>array( 55=>'55' ) ); $array

Re: [PHP] Weird behaviour with move_uploaded_file on CGI version of PHP.

2007-05-24 Thread Brett Davidson
Richard Lynch wrote: On Wed, May 23, 2007 3:36 pm, Brett Davidson wrote: Platform : FreeBSD 6.2 Release with Apache 2.0.59 running PHP 5.2.1_3 CGI under SuExec in FastCGI mode. Issue: move_uploaded_file ALWAYS crfeates uploaded files with Unix permissions 600 (read and write for user only) r

Re: [PHP] Weird behaviour with move_uploaded_file on CGI version of PHP.

2007-05-24 Thread Richard Lynch
On Wed, May 23, 2007 3:36 pm, Brett Davidson wrote: > Platform : FreeBSD 6.2 Release with Apache 2.0.59 running PHP 5.2.1_3 > CGI under SuExec in FastCGI mode. > > Issue: move_uploaded_file ALWAYS crfeates uploaded files with Unix > permissions 600 (read and write for user only) regardless of > own

[PHP] Weird behaviour with move_uploaded_file on CGI version of PHP.

2007-05-23 Thread Brett Davidson
Platform : FreeBSD 6.2 Release with Apache 2.0.59 running PHP 5.2.1_3 CGI under SuExec in FastCGI mode. Issue: move_uploaded_file ALWAYS crfeates uploaded files with Unix permissions 600 (read and write for user only) regardless of ownership, directory or umask settings. This works fine with

Re: [PHP] Weird behaviour with IE

2007-01-11 Thread Frank Arensmeier
And where does PHP come in here? The issue you describe could be anything - CSS related, html related, server related, php / asp / java you name it - maybe it is MS Explorer that sucks. Do some more research first and then - if you still feel that this might be related to PHP, you are welco

[PHP] Weird behaviour with IE

2007-01-11 Thread André Medeiros
Hi list. I know this may be a bit out of topic, but I've decided to try. This website I'm maintaining opens just fine in firefox, and loads everything. However, the same doesn't happen in IE, since the status bar reads "1 item(s) remaining" on most of the pages. That issue raises another proble

Re: [PHP] Weird behaviour with references to objects...

2002-11-09 Thread Tim Molendijk
"Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote in message news:5.1.1.6.2.20021108175627.00b44880@;mail.vogelsinger.at... > > This is clearly said in your PHP.ini file: > > ; Whether to enable the ability to force arguments to be passed by reference > ; at function call time. This method is depr

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Ernest E Vogelsinger
At 17:32 08.11.2002, Tim Molendijk spoke out and said: [snip] >why do you think it won't be supported by future versions? all i do is >passing an object by reference. because in this case this function always >should accept its argument as a reference and the

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Tim Molendijk
"Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote in message news:5.1.1.6.2.20021108170633.00b8cb60@;mail.vogelsinger.at... > > You might always simply omit the parameter when calling the function > (you'll get a notice about that if enabled). You just cannot pass constants: > > function Product(&$

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Ernest E Vogelsinger
At 17:04 08.11.2002, Tim Molendijk spoke out and said: [snip] >Yes I know it is poor programming habits to do like I did... But I have a >reason for it. I have quite a lot methods that accept objects *optional*. So >f.e.: >--- >class Product >{ >var $lang

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Tim Molendijk
"Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote in message news:5.1.1.6.2.20021108165218.03238948@;mail.vogelsinger.at... > One more: > > True for now, but this is "officially deprecated". Functions or methods > accepting a reference are required to be "prototyped" that way - this helps > you not

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Ernest E Vogelsinger
One more: At 16:48 08.11.2002, Tim Molendijk spoke out and said: [snip] > >This is not true in my case, because instead of doing: >function add(&$child) { ... } >I do: >function add($child) { ... } >and then call it with: >$this->add(&$child); > >This has th

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Ernest E Vogelsinger
At 16:48 08.11.2002, Tim Molendijk spoke out and said: [snip] >The problem is solved and I completely understand why now. This last thing >is thanks to you Ernest. [snip] Glad it works - you're very welcome :) --

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Tim Molendijk
"Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote in message news:5.1.1.6.2.20021108092657.02befe20@;mail.vogelsinger.at... > At 03:36 08.11.2002, Tim Molendijk said: > [snip] > > Ahh - culprit 1: > > You said the container is creating a child instance - I ass

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Maxim Maletsky
ctual new object (if that's not too confusing...) > > It's to do with the way the assignment operator works.. > > -Original Message- > From: Tim Molendijk [mailto:tawm@;wanadoo.nl] > Sent: Friday, November 08, 2002 4:14 PM > To: [EMAIL PROTECTED] > Subjec

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Ernest E Vogelsinger
At 03:36 08.11.2002, Tim Molendijk said: [snip] >begin first code snippet >/* New Container object created. At the same time it sets a Child object in >its $child attribute. (This is indicated by passing TRUE.) */ >

RE: [PHP] Weird behaviour with references to objects...

2002-11-07 Thread Martin Towell
ed and not the actual new object (if that's not too confusing...) It's to do with the way the assignment operator works.. -Original Message- From: Tim Molendijk [mailto:tawm@;wanadoo.nl] Sent: Friday, November 08, 2002 4:14 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Weird behaviour wi

Re: [PHP] Weird behaviour with references to objects...

2002-11-07 Thread Tim Molendijk
Hi all, First of all, thank you for the suggestions. Actually I accidently found a solution to the problem... Not that I understand it now, I just found a way to cope with it. By changing the first line of the first code snippet: $testContainer1 = new Container(TRUE); into:

Re: [PHP] Weird behaviour with references to objects...

2002-11-07 Thread Mike Mannakee
This sounds like a matter that ought to make it to the programmers who code PHP itself. In the meantime can you code around it now that you know the bug is there? Mike "Marco Tabini" <[EMAIL PROTECTED]> wrote in message news:1036725595.21741.868.camel@;localhost.localdomain... > I'm not sure if

Re: [PHP] Weird behaviour with references to objects...

2002-11-07 Thread Tom Rogers
Hi, Friday, November 8, 2002, 12:36:03 PM, you wrote: TM> First of all I would like to say that I know this is a lot of text but I TM> would be very pleased if you take a little time to read it nevertheless. The TM> situation described below is not complicated at all... TM> ===

Re: [PHP] Weird behaviour with references to objects...

2002-11-07 Thread Marco Tabini
I'm not sure if my answer is going to be of much help, but I think this has to do with the way PHP handles references and copies of objects--it uses what I understand is a lazy copy mechanism, and thus the results on object manipulations can yield odd results. There was a discussion on a similar pr

[PHP] Weird behaviour with references to objects...

2002-11-07 Thread Tim Molendijk
First of all I would like to say that I know this is a lot of text but I would be very pleased if you take a little time to read it nevertheless. The situation described below is not complicated at all... = Hello all, I'm dealing with this really weird problem

[PHP] Weird :: behaviour

2002-07-12 Thread Alberto Serra
ðÒÉ×ÅÔ! This will not work. It will produce in instead a: parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting ',' or ';' Funnily enough, the NEKUDOTA part looks slavian (sort of "nowhereToGo", not russian, maybe it's polish), so I suspect it means it cannot resolve a parametrized call.

RE: [PHP] weird behaviour with ("Z" <= "Z")

2001-07-10 Thread Christian Dechery
AIL PROTECTED] > www.phpbeginner.com > > > > > >-Original Message- >From: Jack Dempsey [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, July 11, 2001 1:13 AM >To: 'Maxim Maletsky'; [EMAIL PROTECTED]; [EMAIL PROTECTED] >Subject: RE: [PHP] weird behavi

RE: [PHP] weird behaviour with ("Z" <= "Z")

2001-07-10 Thread Christian Dechery
m: Christian Dechery [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, July 11, 2001 12:45 AM >To: [EMAIL PROTECTED] >Subject: [PHP] weird behaviour with ("Z" <= "Z") > > >"Z" <= "Z" is true right?? > >then why this weird thing happens when

RE: [PHP] weird behaviour with ("Z" <= "Z")

2001-07-10 Thread Christian Dechery
search the >archives...i think someone had a simple workaround using chr() to get >what you want... > >jack > >-Original Message- >From: Christian Dechery [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, July 10, 2001 11:45 AM >To: [EMAIL PROTECTED] >Subject: [

RE: [PHP] weird behaviour with ("Z" <= "Z")

2001-07-10 Thread Maxim Maletsky
Olson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 1:45 AM To: Maxim Maletsky Cc: Jack Dempsey; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] weird behaviour with ("Z" <= "Z") I forget which version of PHP allows you to do the following, it may be 4.0.6

RE: [PHP] weird behaviour with ("Z" <= "Z")

2001-07-10 Thread Philip Olson
$i<=90;$i++){ > $str .= chr($i) . " "; > } > echo $str; > ?> > > jack > > -Original Message- > From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 10, 2001 12:10 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject

RE: [PHP] weird behaviour with ("Z" <= "Z")

2001-07-10 Thread Maxim Maletsky
7;; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] weird behaviour with ("Z" <= "Z") Try this: jack -Original Message- From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 12:10 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE:

RE: [PHP] weird behaviour with ("Z" <= "Z")

2001-07-10 Thread Jack Dempsey
Try this: jack -Original Message- From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 12:10 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] weird behaviour with ("Z" <= "Z") what??? are you sure it does that to you? You

RE: [PHP] weird behaviour with ("Z" <= "Z")

2001-07-10 Thread Maxim Maletsky
[mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 12:45 AM To: [EMAIL PROTECTED] Subject: [PHP] weird behaviour with ("Z" <= "Z") "Z" <= "Z" is true right?? then why this weird thing happens when I have this code: for($letter="A"; $l

Re: [PHP] weird behaviour with ("Z" <= "Z")

2001-07-10 Thread Vitali Falileev
Hello Christian, 10 July, 2001, 18:44:53, you wrote: CD> "Z" <= "Z" is true right?? Yes, right, but "Z" = "Z" and your code makes next iteration, then $letter = "AZ" and "AZ" is LESS that "Z", because "A" < "Z". :) CD> then why this weird thing happens when I have this code: CD> for($letter

RE: [PHP] weird behaviour with ("Z" <= "Z")

2001-07-10 Thread Jack Dempsey
PROTECTED]] Sent: Tuesday, July 10, 2001 11:45 AM To: [EMAIL PROTECTED] Subject: [PHP] weird behaviour with ("Z" <= "Z") "Z" <= "Z" is true right?? then why this weird thing happens when I have this code: for($letter="A"; $letter<="

[PHP] weird behaviour with ("Z" <= "Z")

2001-07-10 Thread Christian Dechery
"Z" <= "Z" is true right?? then why this weird thing happens when I have this code: for($letter="A"; $letter<="Z" ; $letter+) echo " $letter"; it should output " A B C D E . W X Y Z" right? but it outputs " A B C D E ... W X Y Z AA AB ... YW YX YY YZ". why? . [ Christian Dechery