Use backticks. http://php.net/manual/en/language.operators.execution.php


On Friday 14 September 2001 12:22, you wrote:
> Hi,
>
> I'm trying to unzip a file and save the unzipped data in a variable in PHP
> using :
>
> $result = system ( "gzip -d -c myfile.gz" );     /* 'gzip -d -c' unzips the
> file to 'stdout' */
>
> the above command outputs the result directly to browser instead of putting
> it in $result.
> I tried exec() too but it didn't help because exec() returns only the last
> line of the output data.
> let me add that myfile.gz is about 1.5mb.
>
> help me please !
>
> Arash

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to