More bzip woes! No file written...
| From: | Mikey | Date: | Tue, 09 Jul 2002 18:50:58 +0000 |
| Subject: | More bzip woes! No file written... | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-14649@lists.php.net to get a copy of this message | ||
Hi ng!
Well, I have finally managed to make my archive (thanks to being set on the
right track by this ng), yet I am having a problem using the bz2
functions...
The code I am using to make the compressed file is as follows:
$data = file ("$filename.tar");
$bz = bzopen ("$filename.bz2", "w");
bzwrite ($bz, $data);
bzclose ($bz);
(The tar file has been created previously in the script.)
I have checked permissions on the directory in question (I have even opened
them wide up for dev purposes) and yet the script fails withthe following
error:
Warning: bzopen(): Unable to open file in
e:\apache\splatted.net\download_basket.php on line 53
Has anyone here got any ideas?
regards,
Mikey