Re: problem with system()

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

« previous php.general (#67417) next »