Issues with File_Archive and php5
| From: | Dan Rossi | Date: | Thu, 13 Oct 2005 05:46:48 +0000 |
| Subject: | Issues with File_Archive and php5 | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-21429@lists.php.net to get a copy of this message | ||
Hi there, has anyone been experiencing bugs with php5 and File_Archive, i had this issue before but i had happened to fix it now it has come back the error i get is
Only variables can be passed by reference
I ended up fixing that by sending the output as a variable , however now no files are being added to the zip file , it comes up blank. The developers site is offline i cant find anywhere else where to find examples. Let me know.
$clientfile = file_get_contents('clientfiles/php/nusoap.php');
$source = File_Archive::readMulti(array(
File_Archive::readMemory($clientfile, 'nusoap.php'),
File_Archive::readMemory($this->_generate(), 'feedclient.php')
)
);
$output = File_Archive::toOutput();
$source->extract(
File_Archive::toArchive(
'php_feedclient.zip',
$output
)
);