Re: [PHP] system() Question

2009-01-01 Thread Nathan Nobbe
On Thu, Jan 1, 2009 at 12:01 AM, Daniel Brown danbr...@php.net wrote: On Thu, Jan 1, 2009 at 01:57, Jim Lucas li...@cmsws.com 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!

Re: [PHP] system() Question

2008-12-31 Thread Micah Gersten
Nathan Nobbe wrote: On Sun, Dec 28, 2008 at 8:40 PM, Micah Gersten mi...@onshore.com mailto:mi...@onshore.com 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

Re: [PHP] system() Question

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

Re: [PHP] system() Question

2008-12-31 Thread Daniel Brown
On Wed, Dec 31, 2008 at 21:29, Nathan Nobbe quickshif...@gmail.com wrote: On Wed, Dec 31, 2008 at 7:03 PM, Micah Gersten mi...@onshore.com 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

Re: [PHP] system() Question

2008-12-31 Thread Jim Lucas
Daniel Brown wrote: On Wed, Dec 31, 2008 at 21:29, Nathan Nobbe quickshif...@gmail.com wrote: On Wed, Dec 31, 2008 at 7:03 PM, Micah Gersten mi...@onshore.com 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

Re: [PHP] system() Question

2008-12-31 Thread Daniel Brown
On Thu, Jan 1, 2009 at 01:57, Jim Lucas li...@cmsws.com 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

[PHP] system() Question

2008-12-28 Thread Ryan O'Sullivan
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 pResponse: , $response, /ppReturn Value: , $retval; The $retval is returning code 127 -

Re: [PHP] system() Question

2008-12-28 Thread Nathan Nobbe
On Sun, Dec 28, 2008 at 12:40 PM, Ryan O'Sullivan r...@rynet.com 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 pResponse: ,

Re: [PHP] system() Question

2008-12-28 Thread Rick Pasotto
On Sun, Dec 28, 2008 at 12:40 PM, Ryan O'Sullivan r...@rynet.com 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 pResponse: ,

Re: [PHP] system() Question

2008-12-28 Thread Daniel Brown
On Sun, Dec 28, 2008 at 18:10, Rick Pasotto r...@niof.net 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

Re: [PHP] system() Question

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

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

Re: [PHP] system() Question

2008-12-28 Thread Nathan Nobbe
On Sun, Dec 28, 2008 at 8:40 PM, Micah Gersten mi...@onshore.com 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