Re: [PHP] In need of CVS/SVN checkout script for Production servers [solved]

2010-05-05 Thread Adam Richardson
On Wed, May 5, 2010 at 9:27 PM, Nathan Rixham wrote: > Daevid Vincent wrote: > >> -Original Message- >>> From: tedd [mailto:tedd.sperl...@gmail.com] Sent: Wednesday, May 05, >>> 2010 8:19 AM >>> To: Daevid Vincent; php-general@lists.php.net >>> Subject: RE: [PHP] In need of CVS/SVN checko

Re: [PHP] Re: Really impressive work

2010-05-05 Thread Robert Cummings
Nathan Rixham wrote: tedd wrote: Hi gang: I found something that really impressed me -- please review this: http://palomarjewelry.com/product/id/19/collectionId/1/typeId/3 Try changing the number and type of stones and watch the main image change (i.e., the basket). If one calculates the n

Re: [PHP] In need of CVS/SVN checkout script for Production servers [solved]

2010-05-05 Thread Nathan Rixham
Daevid Vincent wrote: -Original Message- From: tedd [mailto:tedd.sperl...@gmail.com] Sent: Wednesday, May 05, 2010 8:19 AM To: Daevid Vincent; php-general@lists.php.net Subject: RE: [PHP] In need of CVS/SVN checkout script for Production servers [solved] At 1:10 PM -0700 5/4/10, Daev

Re: [PHP] Can't find my error

2010-05-05 Thread David McGlone
On Wednesday 05 May 2010 16:19:35 Paul M Foster wrote: > On Wed, May 05, 2010 at 01:03:41PM -0400, David McGlone wrote: > > On Wednesday 05 May 2010 12:51:00 Ashley Sheridan wrote: > > > On Wed, 2010-05-05 at 12:55 -0400, David McGlone wrote: > > > > I've checked and checked and re-checked and I ca

Re: [PHP] Can't find my error

2010-05-05 Thread David McGlone
On Wednesday 05 May 2010 13:12:58 Dan Joseph wrote: > On Wed, May 5, 2010 at 1:06 PM, David McGlone wrote: > > On Wednesday 05 May 2010 12:59:07 Dan Joseph wrote: > > > On Wed, May 5, 2010 at 12:55 PM, David McGlone > > > > wrote: > > > > 26. if(isset($_GET['ProductID'])) > > > > 27.

RE: [PHP] In need of CVS/SVN checkout script for Production servers [solved]

2010-05-05 Thread Daevid Vincent
> -Original Message- > From: tedd [mailto:tedd.sperl...@gmail.com] > Sent: Wednesday, May 05, 2010 8:19 AM > To: Daevid Vincent; php-general@lists.php.net > Subject: RE: [PHP] In need of CVS/SVN checkout script for > Production servers [solved] > > At 1:10 PM -0700 5/4/10, Daevid Vincent

Re: [PHP] how to check for bandwidth limitations when uploading files?

2010-05-05 Thread Nathan Rixham
Jim Lucas wrote: Robert P. J. Day wrote: probably not really a PHP question but i'll take a chance, anyway. i want to examine the network throughput i can get when continually uploading files from a PHP script via a POST request using the HTTP_Request2 class. i have a client-side script th

[PHP] Re: Really impressive work

2010-05-05 Thread Nathan Rixham
tedd wrote: Hi gang: I found something that really impressed me -- please review this: http://palomarjewelry.com/product/id/19/collectionId/1/typeId/3 Try changing the number and type of stones and watch the main image change (i.e., the basket). If one calculates the number of permutations

Re: [PHP] Really impressive work

2010-05-05 Thread Michiel Sikma
On 6 May 2010 00:04, tedd wrote: > Hi gang: > > I found something that really impressed me -- please review this: -snip- > Now, we also have smaller images of 12 different stones (in heads) that are > all the same size. Thus, as the user picks the stones and positions they > want and the imag

Re: [PHP] Two color rows in table inside while iteration [X-PHP]

2010-05-05 Thread Michiel Sikma
On 2 May 2010 19:11, tedd wrote: > > > > -snip- > Yes, it would be nice if the people who work for the government also had to > live under the same rules as the rest of us. As it is, they live in a state > of privilege enjoying salaries that are typically 175 percent above that of > the private

[PHP] Really impressive work

2010-05-05 Thread tedd
Hi gang: I found something that really impressed me -- please review this: http://palomarjewelry.com/product/id/19/collectionId/1/typeId/3 Try changing the number and type of stones and watch the main image change (i.e., the basket). If one calculates the number of permutations required to s

Re: [PHP] In need of CVS/SVN checkout script for Production servers [solved]

2010-05-05 Thread Michiel Sikma
On 5 May 2010 17:18, tedd wrote: > At 1:10 PM -0700 5/4/10, Daevid Vincent wrote: > >> Well, here is the one I'm using. I ended up just writing one (again!) >> >> http://www.daevid.com/content/examples/snippets.php :: "Production >> Deployment Script" >> > > What?!? > > Advanced features?? > -sni

Re: [PHP] Inconsistent json_decode() results

2010-05-05 Thread Michiel Sikma
On 5 May 2010 22:14, Michael Shadle wrote: > -snip- > > A. I gotcha now. Yeah I started using that just recently either > 5.2.11 or 5.2.13 (not sure which) > > You can typecast an object to an array that easily? I was unaware. > Yep, it's that easy. :-) // array(1) { // [0]=> // int(1)

Re: [PHP] Can't find my error

2010-05-05 Thread Paul M Foster
On Wed, May 05, 2010 at 01:03:41PM -0400, David McGlone wrote: > On Wednesday 05 May 2010 12:51:00 Ashley Sheridan wrote: > > On Wed, 2010-05-05 at 12:55 -0400, David McGlone wrote: > > > I've checked and checked and re-checked and I can't figure out what I've > > > done wrong. I'm getting a parse

Re: [PHP] Inconsistent json_decode() results

2010-05-05 Thread Michael Shadle
On Wed, May 5, 2010 at 1:11 PM, Michiel Sikma wrote: > You're right, but this is about how 5.2.10 ignores the second parameter and > always returns a class, which appears to be a bug. I'm not sure which other > versions have this same problem, but 5.2.11 has correct behavior, which > seems to sug

Re: [PHP] Inconsistent json_decode() results

2010-05-05 Thread Michiel Sikma
On 5 May 2010 20:02, Michael Shadle wrote: > 2010/5/5 Michiel Sikma : > > > By the way, if you're stuck on 5.2.10, you could simply cast the result > to > > array: > > > > var_dump((array)json_decode('{"_urls": ["a", "b"]}')); > > I don't see a "available starting in 5.x.x" notice, so I think it'

Re: [PHP] Inconsistent json_decode() results

2010-05-05 Thread Michael Shadle
2010/5/5 Michiel Sikma : > By the way, if you're stuck on 5.2.10, you could simply cast the result to > array: > > var_dump((array)json_decode('{"_urls": ["a", "b"]}')); I don't see a "available starting in 5.x.x" notice, so I think it's been there for a long time... http://www.php.net/json_deco

Re: [PHP] Two color rows in table inside while iteration -- just say no to mod

2010-05-05 Thread Michiel Sikma
On 3 May 2010 08:25, Jochen Schultz wrote: > > [snip] > > And unless we are adding a multiple seconds to the load time is anyone >> going to notice a difference of 1 second? >> > > yes > > > It's really not that big a deal. http://pastie.org/947121 Personally, I think using modulus is as nice a

Re: [PHP] Inconsistent json_decode() results

2010-05-05 Thread Michiel Sikma
2010/5/5 François Beausoleil > Hello all! > > We're seeing inconsistent json decoding between PHP versions: > http://gist.github.com/390090 > > Calling json_decode() from 5.2.6 returns an associative array when asked, > while 5.2.10 always returns a stdClass. Is this a bug or a problem with my >

Re: [PHP] Inconsistent json_decode() results

2010-05-05 Thread Michiel Sikma
2010/5/5 Ali Asghar Toraby Parizy > 2010/5/5 François Beausoleil : > > Hello all! > > > > We're seeing inconsistent json decoding between PHP versions: > http://gist.github.com/390090 > > > > Calling json_decode() from 5.2.6 returns an associative array when asked, > while 5.2.10 always returns a

Re: [PHP] how to check for bandwidth limitations when uploading files?

2010-05-05 Thread Jim Lucas
Robert P. J. Day wrote: > probably not really a PHP question but i'll take a chance, anyway. i > want to examine the network throughput i can get when continually > uploading files from a PHP script via a POST request using the > HTTP_Request2 class. > > i have a client-side script that simpl

Re: [PHP] Inconsistent json_decode() results

2010-05-05 Thread Ali Asghar Toraby Parizy
Hi I have this problem too. I think that the version of php results this problem. I have searched later but could not find any solution. 2010/5/5 François Beausoleil : > Hello all! > > We're seeing inconsistent json decoding between PHP versions: > http://gist.github.com/390090 > > Calling json_

Re: [PHP] Can't find my error

2010-05-05 Thread Dan Joseph
On Wed, May 5, 2010 at 1:06 PM, David McGlone wrote: > On Wednesday 05 May 2010 12:59:07 Dan Joseph wrote: > > On Wed, May 5, 2010 at 12:55 PM, David McGlone > wrote: > > > 26. if(isset($_GET['ProductID'])) > > > 27. $this->mSelectedProduct = (init)$_GET['ProductID']; > >

Re: [PHP] Can't find my error

2010-05-05 Thread David McGlone
On Wednesday 05 May 2010 12:59:07 Dan Joseph wrote: > On Wed, May 5, 2010 at 12:55 PM, David McGlone wrote: > > 26. if(isset($_GET['ProductID'])) > > 27. $this->mSelectedProduct = (init)$_GET['ProductID']; > > You've got (init) instead of (int). Its always those little cha

Re: [PHP] Can't find my error

2010-05-05 Thread David McGlone
On Wednesday 05 May 2010 12:59:00 Peter Lind wrote: > On 5 May 2010 18:55, David McGlone wrote: > > I've checked and checked and re-checked and I can't figure out what I've > > done wrong. I'm getting a parse error: > > > > Parse error: syntax error, unexpected T_VARIABLE in > > /home/david/www/Jo

Re: [PHP] Can't find my error

2010-05-05 Thread David McGlone
On Wednesday 05 May 2010 12:51:00 Ashley Sheridan wrote: > On Wed, 2010-05-05 at 12:55 -0400, David McGlone wrote: > > I've checked and checked and re-checked and I can't figure out what I've > > done wrong. I'm getting a parse error: > > > > Parse error: syntax error, unexpected T_VARIABLE in > >

[PHP] Inconsistent json_decode() results

2010-05-05 Thread François Beausoleil
Hello all! We're seeing inconsistent json decoding between PHP versions: http://gist.github.com/390090 Calling json_decode() from 5.2.6 returns an associative array when asked, while 5.2.10 always returns a stdClass. Is this a bug or a problem with my calling convention? Thanks! François

Re: [PHP] Can't find my error

2010-05-05 Thread Peter Lind
On 5 May 2010 18:55, David McGlone wrote: > I've checked and checked and re-checked and I can't figure out what I've done > wrong. I'm getting a parse error: > > Parse error: syntax error, unexpected T_VARIABLE in > /home/david/www/Joe/current/presentation/smarty_plugins/function.load_products_lis

Re: [PHP] Can't find my error

2010-05-05 Thread Dan Joseph
On Wed, May 5, 2010 at 12:55 PM, David McGlone wrote: > 26. if(isset($_GET['ProductID'])) > 27. $this->mSelectedProduct = (init)$_GET['ProductID']; > > You've got (init) instead of (int). Its always those little characters causing trouble! -- -Dan Joseph www.canishosti

Re: [PHP] Can't find my error

2010-05-05 Thread Ashley Sheridan
On Wed, 2010-05-05 at 12:55 -0400, David McGlone wrote: > I've checked and checked and re-checked and I can't figure out what I've done > wrong. I'm getting a parse error: > > Parse error: syntax error, unexpected T_VARIABLE in > /home/david/www/Joe/current/presentation/smarty_plugins/function.

[PHP] Can't find my error

2010-05-05 Thread David McGlone
I've checked and checked and re-checked and I can't figure out what I've done wrong. I'm getting a parse error: Parse error: syntax error, unexpected T_VARIABLE in /home/david/www/Joe/current/presentation/smarty_plugins/function.load_products_list.php on line 27. Can anyone spot my error? I'd

Re: [PHP] strtotime woes

2010-05-05 Thread Philip Thompson
On May 5, 2010, at 10:12 AM, Peter Lind wrote: > On 5 May 2010 16:58, Philip Thompson wrote: >> Hello all. >> >> Long time no see! Anyway, I'm having an issue with strtotime(). Why do the >> following return valid timestamps? >> >> > echo strtotime ('a').': '.date ("m/d/Y", strtotime ('a')).""

Re: [PHP] how to check for bandwidth limitations when uploading files?

2010-05-05 Thread tedd
At 6:52 AM -0400 5/5/10, Robert P. J. Day wrote: probably not really a PHP question but i'll take a chance, anyway. i want to examine the network throughput i can get when continually uploading files from a PHP script via a POST request using the HTTP_Request2 class. i have a client-side

Re: [PHP] Inserting rows with missing IDs

2010-05-05 Thread tedd
Richard Quadling wrote: On 3 May 2010 14:34, Andre Polykanine wrote: Hello everyone, It's not a strictly PHP question, however since I use that with PHP, I'm asking it there. How can I accomplish the task of inserting rows into MySql database with missing IDs? Say, I have rows with IDs 1, 2, 3,

RE: [PHP] In need of CVS/SVN checkout script for Production servers [solved]

2010-05-05 Thread tedd
At 1:10 PM -0700 5/4/10, Daevid Vincent wrote: Well, here is the one I'm using. I ended up just writing one (again!) http://www.daevid.com/content/examples/snippets.php :: "Production Deployment Script" What?!? Advanced features?? I know you don't mean it, but you certainly know how to piss

Re: [PHP] strtotime woes

2010-05-05 Thread Peter Lind
On 5 May 2010 16:58, Philip Thompson wrote: > Hello all. > > Long time no see! Anyway, I'm having an issue with strtotime(). Why do the > following return valid timestamps? > > echo strtotime ('a').': '.date ("m/d/Y", strtotime ('a')).""; > echo strtotime ('a,a').': '.date ("m/d/Y", strtotime ('

[PHP] strtotime woes

2010-05-05 Thread Philip Thompson
Hello all. Long time no see! Anyway, I'm having an issue with strtotime(). Why do the following return valid timestamps? "; echo strtotime ('a,a').': '.date ("m/d/Y", strtotime ('a,a')).""; echo strtotime ('a,a,a').': '.date ("m/d/Y", strtotime ('a,a,a')).""; ?> These result in today's date: 1

Re: [PHP] how to check for bandwidth limitations when uploading files?

2010-05-05 Thread Robert P. J. Day
Quoting Jochen Schultz : OS? Robert P. J. Day schrieb: probably not really a PHP question but i'll take a chance, anyway. i want to examine the network throughput i can get when continually uploading files from a PHP script via a POST request using the HTTP_Request2 class. i have

RE: [PHP] how to check for bandwidth limitations when uploading files?

2010-05-05 Thread Tommy Pham
> -Original Message- > From: Robert P. J. Day [mailto:rpj...@crashcourse.ca] > Sent: Wednesday, May 05, 2010 3:52 AM > To: php-general@lists.php.net > Subject: [PHP] how to check for bandwidth limitations when uploading files? > >probably not really a PHP question but i'll take a chanc

Re: [PHP] how to check for bandwidth limitations when uploading files?

2010-05-05 Thread Jochen Schultz
OS? Robert P. J. Day schrieb: probably not really a PHP question but i'll take a chance, anyway. i want to examine the network throughput i can get when continually uploading files from a PHP script via a POST request using the HTTP_Request2 class. i have a client-side script that simpl

[PHP] how to check for bandwidth limitations when uploading files?

2010-05-05 Thread Robert P. J. Day
probably not really a PHP question but i'll take a chance, anyway. i want to examine the network throughput i can get when continually uploading files from a PHP script via a POST request using the HTTP_Request2 class. i have a client-side script that simply takes files, creates a sh