Re: [PHP] system() Question

2009-01-01 Thread Nathan Nobbe
On Thu, Jan 1, 2009 at 12:01 AM, Daniel Brown wrote: > On Thu, Jan 1, 2009 at 01:57, Jim Lucas wrote: > > > > Getting in some practice for new little one? :) > > Damn kids ;-P > > > Happy New Year to all, and to all a safe night! > > To you as well, Mr. Lucas! And now that I am don

Re: [PHP] system() Question

2008-12-31 Thread Daniel Brown
On Thu, Jan 1, 2009 at 01:57, Jim Lucas wrote: > > Getting in some practice for new little one? :) Damn kids ;-P > Happy New Year to all, and to all a safe night! To you as well, Mr. Lucas! And now that I am done with work (for the most part), this is my official adieu to 2008. T

Re: [PHP] system() Question

2008-12-31 Thread Jim Lucas
Daniel Brown wrote: On Wed, Dec 31, 2008 at 21:29, Nathan Nobbe wrote: On Wed, Dec 31, 2008 at 7:03 PM, Micah Gersten wrote: I think I was confused here about your response. After re-reading a few times, I see that you were enhancing Dan's response by explaining what call-time pass by refere

Re: [PHP] system() Question

2008-12-31 Thread Daniel Brown
On Wed, Dec 31, 2008 at 21:29, Nathan Nobbe wrote: > On Wed, Dec 31, 2008 at 7:03 PM, Micah Gersten wrote: >> >> I think I was confused here about your response. After re-reading a few >> times, I see that you were enhancing Dan's response by explaining what >> call-time pass by reference is, no

Re: [PHP] system() Question

2008-12-31 Thread Nathan Nobbe
On Wed, Dec 31, 2008 at 7:03 PM, Micah Gersten wrote: > Nathan Nobbe wrote: > > > > > > On Sun, Dec 28, 2008 at 8:40 PM, Micah Gersten > > wrote: > > > > Nathan Nobbe wrote: > > > good point dan, and just to add further clarification, thats b/c > the > > > f

Re: [PHP] system() Question

2008-12-31 Thread Micah Gersten
Nathan Nobbe wrote: > > > On Sun, Dec 28, 2008 at 8:40 PM, Micah Gersten > wrote: > > Nathan Nobbe wrote: > > good point dan, and just to add further clarification, thats b/c the > > function specifies $return_var is passed by reference in the formal > > p

Re: [PHP] system() Question

2008-12-28 Thread Nathan Nobbe
On Sun, Dec 28, 2008 at 8:40 PM, Micah Gersten wrote: > Nathan Nobbe wrote: > > good point dan, and just to add further clarification, thats b/c the > > function specifies $return_var is passed by reference in the formal > > parameter. when you include the & along w/ an actual parameter (during

Re: [PHP] system() Question

2008-12-28 Thread Micah Gersten
Nathan Nobbe wrote: > good point dan, and just to add further clarification, thats b/c the > function specifies $return_var is passed by reference in the formal > parameter. when you include the & along w/ an actual parameter (during > function invocation) thats referred to as call-time-pass-by-re

Re: [PHP] system() Question

2008-12-28 Thread Nathan Nobbe
On Sun, Dec 28, 2008 at 6:49 PM, Daniel Brown wrote: > On Sun, Dec 28, 2008 at 18:10, Rick Pasotto wrote: > > > > You overlooked the ampersand in front of $retval. The syntax for > > 'system' is: > > > > string system ( string $command [, int &$return_var ] ) > > > > You have to pass a pointe

Re: [PHP] system() Question

2008-12-28 Thread Daniel Brown
On Sun, Dec 28, 2008 at 18:10, Rick Pasotto wrote: > > You overlooked the ampersand in front of $retval. The syntax for > 'system' is: > > string system ( string $command [, int &$return_var ] ) > > You have to pass a pointer to the variable, not the variable itself. Actually, that's not e

Re: [PHP] system() Question

2008-12-28 Thread Rick Pasotto
On Sun, Dec 28, 2008 at 12:40 PM, Ryan O'Sullivan wrote: > Hello all, > > I am using system to convert some files using a binary in linux. My code > looks like this: > $response = system('gpsbabel -p "" -r -t -i gpx -f "test.gpx" -o kml -F > "test2.kml"', $retval); > echo "Response: ",

Re: [PHP] system() Question

2008-12-28 Thread Nathan Nobbe
On Sun, Dec 28, 2008 at 12:40 PM, Ryan O'Sullivan wrote: > Hello all, > > I am using system to convert some files using a binary in linux. My code > looks like this: > $response = system('gpsbabel -p "" -r -t -i gpx -f "test.gpx" -o kml -F > "test2.kml"', $retval); > echo "Response: ", $