Re: [PHP] preventing output dump of passthru()

2003-08-14 Thread Curt Zirzow
* Thus wrote Chris W. Parker ([EMAIL PROTECTED]): > Here is my code: > > $command = "file -i ".$pictureDir."1"."_".$id."-*.gif"; // testing > $output = `$command`; > $outputArr = explode("\n",$command_output); > print_r($outputArr); > > If you'll notice line #2 is "$output = `$command`;". It has

RE: [PHP] preventing output dump of passthru()

2003-08-14 Thread Chris W. Parker
Chris W. Parker <> on Tuesday, August 05, 2003 4:56 PM said: > Trying to prevent the output dumping of passthru() and instead store > the output in a variable. [snip] > But that didn't work. Is there *ANY* way to achieve what I want? Ok I've found one solution so far* and it's doing what I

Re: [PHP] preventing output dump of passthru()

2003-08-14 Thread Curt Zirzow
* Thus wrote Chris W. Parker ([EMAIL PROTECTED]): > Curt Zirzow > on Tuesday, August 05, 2003 7:18 PM said: > > > thats the backtick operator. > > http://php.net/manual/en/language.operators.execution.php > > Oh... I SEE! Now I get it! > > So /that's/ w

RE: [PHP] preventing output dump of passthru()

2003-08-12 Thread Chris W. Parker
Curt Zirzow on Tuesday, August 05, 2003 7:18 PM said: > thats the backtick operator. > http://php.net/manual/en/language.operators.execution.php Oh... I SEE! Now I get it! So /that's/ what a backtick is huh? I always ignored that link in the php manual

RE: [PHP] preventing output dump of passthru()

2003-08-11 Thread Jon Drukman
At 05:22 PM 8/5/2003, Chris W. Parker wrote: David Nicholson on Tuesday, August 05, 2003 5:12 PM said: > $output = array(); > exec("command",$output); > $output = implode("",$output); That's a good idea! Well how about this? (posted in another message) $output = exp

Re: [PHP] preventing output dump of passthru()

2003-08-08 Thread daniel
the whole idea of passthru is to output the stdout i'd use exec and the stdout is stored as an array > Hello, > > Trying to prevent the output dumping of passthru() and instead store > the output in a variable. > > I read an article that suggested this: > > ob_start(); > > passthru("command"); > >

[PHP] preventing output dump of passthru()

2003-08-08 Thread Chris W. Parker
Hello, Trying to prevent the output dumping of passthru() and instead store the output in a variable. I read an article that suggested this: ob_start(); passthru("command"); $output = ob_get_contents(); ob_end_clean(); But that didn't work. Is there *ANY* way to achieve what I want? Thanks

RE: [PHP] preventing output dump of passthru()

2003-08-06 Thread Chris W. Parker
David Nicholson on Tuesday, August 05, 2003 5:12 PM said: > $output = array(); > exec("command",$output); > $output = implode("",$output); That's a good idea! Well how about this? (posted in another message) $output = explode("\n",chop(`$command`)); That is worki

Re: [PHP] preventing output dump of passthru()

2003-08-05 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Wed, 6 Aug 2003 at 00:56, lines prefixed by '>' were originally written by you. > Hello, > Trying to prevent the output dumping of passthru() and instead store > the > output in a variable. > I read an article that suggested this: > ob_start();