problem with system()

From: Date: Fri, 14 Sep 2001 19:22:36 +0000
Subject: problem with system()
Groups: php.general 
Request: Send a blank email to php-general+get-67401@lists.php.net to get a copy of this message
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

« previous php.general (#67401) next »