Re: [PHP] PHP4 vs PHP5 classes

2008-07-28 Thread jeff . mills
>> >> The $players object is created before the loop: >> $players = new Players($lid); > > > > Which means the code is only executed once since it's in the > constructor. It's not changing per loop because you're not calling the > code. > > Maybe setting $this->max should be done in > > fetchSele

Re: [PHP] PHP4 vs PHP5 classes

2008-07-28 Thread Chris
[EMAIL PROTECTED] wrote: >> Since the Players method is a constructor, it's more about how you set >> the object(s) up. >> >> What does the loop look like before you create a new object? >> > > Well see here is where it gets messy! This is not my code - I've ported a > phpnuke module over to drago

Re: [PHP] PHP4 vs PHP5 classes

2008-07-28 Thread jeff . mills
> > Since the Players method is a constructor, it's more about how you set > the object(s) up. > > What does the loop look like before you create a new object? > Well see here is where it gets messy! This is not my code - I've ported a phpnuke module over to dragonflycms. The $players object is

Re: [PHP] Problem with using array_diff and array_combine

2008-07-28 Thread Chris
Richard Kurth wrote: > I hope I can explain what I am trying to do. > I have two tables the first one has the custom form elements > > > elements_id elements_field_type elements_field_caption members_id > 35 text test8 > 36 text

Re: [PHP] PHP4 vs PHP5 classes

2008-07-28 Thread Chris
> I have run through the script with a debugger, and sure > enough, we only enter function Players once. > > Is this normal behaviour for PHP5 vs PHP4? > Is there a way for me to force $this->max to be calculated each time > function max is called? Since the Players method is a constructor, it's

[PHP] PHP4 vs PHP5 classes

2008-07-28 Thread jeff . mills
I have the following code in part of a loop: $max = $players->max(); Important parts of players class: class Players extends dynamicTable { var $setup; var $lid; var $size; var $max; var $data; var $data_result; var $data_index; var $player_stats_result; var $player_stat

[PHP] Scoping?

2008-07-28 Thread joshua harr
Never mind. Gotta lay off the dumb juice.

[PHP] Scoping?

2008-07-28 Thread joshua harr
I'm new to php. My understanding of php scoping in v5 is that within a file there are only two scopes, main and in function. Why doesn't this work? --- $err = "original value"; $page = " {$err} Some more HTML"; if(something) { $err = "this error"; // $err retains original value ins

Re: [PHP] Web2.0 style tags - where to start?

2008-07-28 Thread Paul Jinks
Jason Norwood-Young wrote: On Mon, 2008-07-28 at 14:48 +0100, Paul Jinks wrote: I think my first post was ambiguous. What we're thinking of is to build a site on which people can view videos with the option to add metadata to a video after viewing it. We think that the content we have will b

[PHP] Problem with using array_diff and array_combine

2008-07-28 Thread Richard Kurth
I hope I can explain what I am trying to do. I have two tables the first one has the custom form elements elements_id elements_field_type elements_field_caption members_id 35 text test 8 36 text test2 8

FW: FW: [PHP] getting info from video formats

2008-07-28 Thread Chris Scott
> -Original Message- > From: mike [mailto:[EMAIL PROTECTED] > Sent: Monday, July 28, 2008 2:17 PM > To: Chris Scott > Cc: php-general@lists.php.net > Subject: Re: FW: [PHP] getting info from video formats > > On 7/28/08, Chris Scott <[EMAIL PROTECTED]> wrote: > > I agree. > > > > I use M

Re: [PHP] Why PHP4?

2008-07-28 Thread Richard Heyes
> actually, a lot of stuff is finally saying "php5 only" now ... Just in time for PHP6... :-) -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: FW: [PHP] getting info from video formats

2008-07-28 Thread mike
On 7/28/08, Chris Scott <[EMAIL PROTECTED]> wrote: > I agree. > > I use MPlayer to process videos. One script gets the video length like this. > > //use mplayer to pull some info from the video > $info = exec("\"$mplayer\" $videoPath/$videoName -identify -nosound -frames 0 > > $tmpInfoFile"); > //

FW: [PHP] getting info from video formats

2008-07-28 Thread Chris Scott
I agree. I use MPlayer to process videos. One script gets the video length like this. //use mplayer to pull some info from the video $info = exec("\"$mplayer\" $videoPath/$videoName -identify -nosound -frames 0 > $tmpInfoFile"); //and open the file it stores the data in $infoFile = fopen("$tmpIn

Re: [PHP] getting info from video formats

2008-07-28 Thread mike
On 7/28/08, Rene Veerman <[EMAIL PROTECTED]> wrote: > ImageMagick's "identify" command supposedly reads AVI and MPEG, but i can't > get it to work on my avi's: i wouldn't rely on it; i'd rely on it for "Image"s :) > C:\Users\rene\Documents\Downloads>identify > Stargate.Atlantis.S05E02.HDTV.XviD-

Re: [PHP] Why PHP4?

2008-07-28 Thread mike
On 7/28/08, n3or <[EMAIL PROTECTED]> wrote: > Compatibility to older Software of the hosters and sloth of the developers i think this is a cop-out, any halfass open source package should be compatible with php5 now. i've been running php5 since it came out and everything i have tried never has a

Re: [PHP] Programming With Revision History

2008-07-28 Thread Eric Butera
On Mon, Jul 28, 2008 at 11:58 AM, Nate Tallman <[EMAIL PROTECTED]> wrote: > Hey guys, > Does anyone know of any good literature on programming revision history into > an application? I'm looking for something covering theory around revision > history. > > For a little background info, I'm dealing w

[PHP] Programming With Revision History

2008-07-28 Thread Nate Tallman
Hey guys, Does anyone know of any good literature on programming revision history into an application? I'm looking for something covering theory around revision history. For a little background info, I'm dealing with lesson plans that will need to be edited by many different sources. I like the wa

Re: [PHP] Code beautifier

2008-07-28 Thread tedd
At 11:20 AM -0400 7/28/08, Jason Pruim wrote: On Jul 28, 2008, at 11:10 AM, tedd wrote: As I've said many times before: "I've learned something new every day of my life... and I'm getting damned tried of it!" Butt... You're still alive to be apart of it :) As long as my butt is, I guess yo

Re: [PHP] Code beautifier

2008-07-28 Thread Jason Pruim
On Jul 28, 2008, at 11:10 AM, tedd wrote: At 9:06 AM +0100 7/28/08, Peter Ford wrote: At 6:47 PM -0400 7/25/08, Daniel Brown wrote: On Fri, Jul 25, 2008 at 6:29 PM, tedd <[EMAIL PROTECTED]> wrote: But, there's nothing wrong with starting a sentence with but. Correct, as I said, in "Rea

Re: [PHP] Code beautifier

2008-07-28 Thread tedd
At 9:06 AM +0100 7/28/08, Peter Ford wrote: At 6:47 PM -0400 7/25/08, Daniel Brown wrote: On Fri, Jul 25, 2008 at 6:29 PM, tedd <[EMAIL PROTECTED]> wrote: But, there's nothing wrong with starting a sentence with but. Correct, as I said, in "Reader's Digest" English. In proper grammar, i

Re: [PHP] Code beautifier

2008-07-28 Thread Philip Thompson
On Jul 24, 2008, at 5:48 AM, Richard Heyes wrote: Anyone know of an unintrusive code beautifier written specifically with in mind? With 'what' in mind? Sorry, PHP. Not that this thread got off topic at all, but here's a listing (more than PHP): http://en.wikipedia.org/wiki/Prettypr

Re: [PHP] Web2.0 style tags - where to start?

2008-07-28 Thread Jason Norwood-Young
On Mon, 2008-07-28 at 14:48 +0100, Paul Jinks wrote: > I think my first post was ambiguous. What we're thinking of is to build a > site on which people can view videos with the option to add metadata to a > video after viewing it. > > We think that the content we have will be of wide interest to

Re: [PHP] Web2.0 style tags - where to start?

2008-07-28 Thread Paul Jinks
On Mon, July 28, 2008 2:04 pm, Richard Heyes wrote: >> I'm working on a project where we're building a collection of videos in >> Flash and the idea has been mooted that it would improve usability if we >> were to allow users to tag videos they've seen a la last.fm, flickr >> youtube etc. > > If yo

Re: [PHP] Why PHP4?

2008-07-28 Thread Per Jessen
Richard Heyes wrote: >> Finally - why migrate? What's the rush? Lots of people are still >> running back-level software > > That I can understand. I'm still running Apache 1.3.33 (I think) along > with PHP 5.0.4. Right, you've answered your own question. You're still on Apache 1.3.33 because y

Re: [PHP] Why PHP4?

2008-07-28 Thread Richard Heyes
> Finally - why migrate? What's the rush? Lots of people are still > running back-level software That I can understand. I'm still running Apache 1.3.33 (I think) along with PHP 5.0.4. -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

Re: [PHP] Why PHP4?

2008-07-28 Thread Aschwin Wesselius
n3or wrote: Compatibility to older Software of the hosters and sloth of the developers Richard Heyes schrieb: I'm interested - why are people still using PHP4? It's been over 4 years (I think) - plenty of time to upgrade to five. I think because retro is hot these daysor wasor will b

Re: [PHP] Why PHP4?

2008-07-28 Thread Richard Heyes
> Why is COBOL still in use? :) What is COBOL? :-) -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why PHP4?

2008-07-28 Thread Eric Butera
On Mon, Jul 28, 2008 at 8:12 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: > I'm interested - why are people still using PHP4? It's been over 4 > years (I think) - plenty of time to upgrade to five. > > -- > Richard Heyes > http://www.phpguru.org Why is COBOL still in use? :) -- PHP General Maili

Re: [PHP] Web2.0 style tags - where to start?

2008-07-28 Thread Richard Heyes
> I'm working on a project where we're building a collection of videos in > Flash and the idea has been mooted that it would improve usability if we > were to allow users to tag videos they've seen a la last.fm, flickr > youtube etc. If you're thinking of trying re-invent a UI - my advice would be

Re: [PHP] Why PHP4?

2008-07-28 Thread Per Jessen
Richard Heyes wrote: > I'm interested - why are people still using PHP4? It's been over 4 > years (I think) - plenty of time to upgrade to five. Migration issues for instance - we have quite a bit of code that uses sablotron - in PHP5 that's been changed to libxslt, which requires extensive code-

Re: [PHP] Why PHP4?

2008-07-28 Thread n3or
Compatibility to older Software of the hosters and sloth of the developers Richard Heyes schrieb: I'm interested - why are people still using PHP4? It's been over 4 years (I think) - plenty of time to upgrade to five. -- Viele Grüße Dominik Strauß - www.n3or.de Webentwicklung, PHP und Linux M

[PHP] Web2.0 style tags - where to start?

2008-07-28 Thread Paul Jinks
Hi I'm working on a project where we're building a collection of videos in Flash and the idea has been mooted that it would improve usability if we were to allow users to tag videos they've seen a la last.fm, flickr youtube etc. It's still very early days and I'm quite interested in putting somet

[PHP] Why PHP4?

2008-07-28 Thread Richard Heyes
I'm interested - why are people still using PHP4? It's been over 4 years (I think) - plenty of time to upgrade to five. -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] getting info from video formats

2008-07-28 Thread Aschwin Wesselius
Rene Veerman wrote: USD 1500 for a commercial license :( That's prohibitively expensive for me atm.. Any other packages that might do the trick? Well, there's nothing wrong with taking a peek at the source code and get some idea of how they did the information gathering. Then, build your ow

Re: [PHP] getting info from video formats

2008-07-28 Thread Aschwin Wesselius
Aschwin Wesselius wrote: Rene Veerman wrote: Hi. I want to enable video and flash for my CMS, but that requires that i can read at least the dimensions of a video file.. ImageMagick's "identify" command supposedly reads AVI and MPEG, but i can't get it to work on my avi's: C:\Users\rene\D

Re: [PHP] getting info from video formats

2008-07-28 Thread Aschwin Wesselius
Rene Veerman wrote: Hi. I want to enable video and flash for my CMS, but that requires that i can read at least the dimensions of a video file.. ImageMagick's "identify" command supposedly reads AVI and MPEG, but i can't get it to work on my avi's: C:\Users\rene\Documents\Downloads>identify St

[PHP] getting info from video formats

2008-07-28 Thread Rene Veerman
Hi. I want to enable video and flash for my CMS, but that requires that i can read at least the dimensions of a video file.. ImageMagick's "identify" command supposedly reads AVI and MPEG, but i can't get it to work on my avi's: C:\Users\rene\Documents\Downloads>identify Stargate.Atlantis.S05E02

Re: [PHP] Code beautifier

2008-07-28 Thread Peter Ford
tedd wrote: At 6:47 PM -0400 7/25/08, Daniel Brown wrote: On Fri, Jul 25, 2008 at 6:29 PM, tedd <[EMAIL PROTECTED]> wrote: > But, there's nothing wrong with starting a sentence with but. There, I even started AND ended with one. Correct, as I said, in "Reader's Digest" English. In pro