RE: [PHP] determine which string is longer and then what is different in that string

2007-08-25 Thread Sanjeev N
Hi Richard, I am trying to get your actual problem. First, you want to compare 2 strings and want to check what the difference between these 2 strings is. I assuming string may contain either numbers or any characters. Second, you are trying to compare the numbers. But I am thinking that your pr

RE: [PHP] Calling functions which names are inside a variable

2007-08-25 Thread Sanjeev N
I tested this functionality. This is working fine. foo.php somefunction.php Out put is hello. You make sure that your both files are in same folder and make sure that $var.'.php' is exist with $var function. Warm Regards, Sanjeev http://www.sanchanworld.com/ http://webdirector

[PHP] Re: determine which string is longer and then what is different in that string

2007-08-25 Thread Robert Keizer
Okay, why not try somthing like this: $string1 = "1,2,3,4,5,6,7,8"; $string2 = "2,4,6,8,10"; $ary1 = implode(",",$string1); $ary2 = implode(",",$string2); $num1 = ''; $num2 = ''; foreach($ary1 as $num){ $num1 .= $num; } foreach($ary2 as $num){ $num2 .= $num; } that would get the strings

[PHP] Re: Calling functions which names are inside a variable

2007-08-25 Thread Robert Keizer
Thats great thanks, but it doesn't solve my problem completly, im trying to use $output = $var(); .. which gives me an error. The $var(); works though, so thanks for that. Robert Keizer ""Robert Keizer"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I am currently working on a mo

[PHP] determine which string is longer and then what is different in that string

2007-08-25 Thread Richard Kurth
I am trying to find out which string is the longest and then find out what is different between the two string. Sometimes String 2 is longer than String 1 The script below works sometimes but not all the time. Is there a better way to do this or tell me what is wrong with the script I am using $s

Re: [PHP] Calling functions which names are inside a variable

2007-08-25 Thread Robert Cummings
On Sat, 2007-08-25 at 23:46 -0600, Robert Keizer wrote: > I am currently working on a module testing class, I can't seem to find the > correct syntax. Here is an example of the problem: > > function foo( $var ){ > include $var.'.php'; > return $var(); //

[PHP] Calling functions which names are inside a variable

2007-08-25 Thread Robert Keizer
I am currently working on a module testing class, I can't seem to find the correct syntax. Here is an example of the problem: function foo( $var ){ include $var.'.php'; return $var(); //

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Robert Cummings
On Sat, 2007-08-25 at 14:26 -0500, Larry Garfield wrote: > On Saturday 25 August 2007, Nathan Nobbe wrote: > > i dont know what all this goPHP5 stuff is about. > > all i know is there was an announcment on php.net a few weeks back saying > > php4 is deprecated and it soon will be made obsolete. > >

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Larry Garfield
On Saturday 25 August 2007, Nathan Nobbe wrote: > i dont know what all this goPHP5 stuff is about. > all i know is there was an announcment on php.net a few weeks back saying > php4 is deprecated and it soon will be made obsolete. > > -nathan That announcement came a week after this site launched:

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Nathan Nobbe
i dont know what all this goPHP5 stuff is about. all i know is there was an announcment on php.net a few weeks back saying php4 is deprecated and it soon will be made obsolete. -nathan On 8/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Sat, 2007-08-25 at 12:28 -0500, Larry Garfield wro

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Robert Cummings
On Sat, 2007-08-25 at 12:28 -0500, Larry Garfield wrote: > Robert and everyone: PLEASE do not reply to list AND the sender, at least not > when I'm the sender. I don't need double copies of every message in every > thread I participate in. Thanks. Sorry I've been hitting reply-all since I firs

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Larry Garfield
Robert and everyone: PLEASE do not reply to list AND the sender, at least not when I'm the sender. I don't need double copies of every message in every thread I participate in. Thanks. On Saturday 25 August 2007, Robert Cummings wrote: > > There is no way to respond to the above request, beca

RE: [PHP] Does JavaScript not work in php web file?

2007-08-25 Thread Sanjeev N
Hi, JavaScript codes works in php files. Yours code is also fine. But check your calling function and defined functions. Calling function is jsopsi and defined function is opsi. Please check. Other than this everything is ok Warm Regards, Sanjeev http://www.sanchanworld.com/ http://webdirectory.

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Nathan Nobbe
i know this thread started off about a performance comparison, but it is already grown into much more. suffice it to say that i consider the oop capacity of php4 nothing more than a stepping stone on the way to php5. i dont know of all the oop languages out there. mostly i have worked w/ c++ and

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Robert Cummings
On Sat, 2007-08-25 at 11:09 -0500, Larry Garfield wrote: > On Saturday 25 August 2007, Robert Cummings wrote: > > > Rewriting? You're assuming developers of PHP4 are using all of the > > features in PHP5 but written using PHP4 code. That's not a very valid > > assumption. You're also assuming they

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Larry Garfield
On Saturday 25 August 2007, Robert Cummings wrote: > Rewriting? You're assuming developers of PHP4 are using all of the > features in PHP5 but written using PHP4 code. That's not a very valid > assumption. You're also assuming they didn't already have code written > in PHP4 that was then duplicate

[PHP] Does JavaScript not work in php web file?

2007-08-25 Thread Patrik Hasibuan
Dear my friends... I am confused to implement JavaScript code in php web file. I want my JavaScript change the "selected" item of tag based on the "selected" item of previous in same php page. Please help me tell my where is my mistake. === Here is my code pelangganbaru.php ===

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Nathan Nobbe
agreed :) On 8/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Sat, 2007-08-25 at 10:57 -0400, Nathan Nobbe wrote: > > Robert, > > > > C is a low-level language whereas php is a high level language. > > ill admit it openly, i am biased toward oop / design patterns. > > and i think what i

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Robert Cummings
On Sat, 2007-08-25 at 10:57 -0400, Nathan Nobbe wrote: > Robert, > > C is a low-level language whereas php is a high level language. > ill admit it openly, i am biased toward oop / design patterns. > and i think what i boils down to is what you view as 'icing' > i view as 'bread-and-butter' ;) I'

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Nathan Nobbe
Robert, C is a low-level language whereas php is a high level language. ill admit it openly, i am biased toward oop / design patterns. and i think what i boils down to is what you view as 'icing' i view as 'bread-and-butter' ;) personally i shudder when i see a big pile of usntructured code, or a

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Robert Cummings
On Sat, 2007-08-25 at 10:33 -0400, Nathan Nobbe wrote: > yes, i agree, people wont be all-of-a-sudden ignoring php4, but the > notice on php.net says to migrate apps to 5 through the rest of the > yaer. id say thats ample time to move away from it. Migrate doesn't necessarily mean ditching PHP4 c

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Nathan Nobbe
yes, i agree, people wont be all-of-a-sudden ignoring php4, but the notice on php.net says to migrate apps to 5 through the rest of the yaer. id say thats ample time to move away from it. pretty much all of my applications rely on php5 features except those where the system was running on php4 whe

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Robert Cummings
On Sat, 2007-08-25 at 09:38 -0400, Nathan Nobbe wrote: > i dont know Robert; i think it depends upon the structure of ones > business. > for instance; i work for a company full time, and have a start up of > my own. > in both of those situations there is no impact on the client in the > act of > e

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Nathan Nobbe
i dont know Robert; i think it depends upon the structure of ones business. for instance; i work for a company full time, and have a start up of my own. in both of those situations there is no impact on the client in the act of eliminating php4 from the product implementation. the clients never us

Re: [PHP] nuSoap client SOAP Call problem

2007-08-25 Thread Angelo Zanetti
Thijs Lensselink wrote: Angelo Zanetti wrote: Thijs Lensselink wrote: On Fri, 24 Aug 2007 07:57:48 +0200, Angelo Zanetti <[EMAIL PROTECTED]> wrote: Dear all Im using nusoap to create a cleint and I am having a small issue but its a fairly large one because I cant get the c

Re: [PHP] nuSoap client SOAP Call problem

2007-08-25 Thread Angelo Zanetti
Thijs Lensselink wrote: On Fri, 24 Aug 2007 13:55:29 +0200, Angelo Zanetti <[EMAIL PROTECTED]> wrote: Thijs Lensselink wrote: On Fri, 24 Aug 2007 12:39:06 +0200, Angelo Zanetti <[EMAIL PROTECTED]> wrote: Thijs Lensselink wrote: On Fri, 24 Aug 2007 11:53:12 +02