Author Topic: Problem with zip files  (Read 2022 times)

0 Members and 1 Guest are viewing this topic.

Offline bmwfans

  • Pre-Newbie
  • Posts: 1
    • View Profile
Problem with zip files
« on: November 04, 2011, 07:30:24 PM »
Hello guys!
First of all I want to say a big thanks for this great platform!  :)

Some days later I've managed to get the 4image platform to work on my server.Everythings went fine except one thing.
When I try to download a photo as zip or I try to download all photos from lightbox as zip, I receive a zip file with only 188bytes!

After I open it with notepad  I saw this!

Code: [Select]
<br /><strong>Warning</strong>: fpassthru() has been disabled for security reasons in <strong>/public_html/4images/includes/zip.php</strong> on line <strong>222</strong><br />
What I am doing now? It's problem with php on server side?

Thanks!!! :)

My version of 4images is 1.7.7  8)

-EDIT- -EDIT- -EDIT- -EDIT-

I find a solution! I don't know if it is proper but seems to work fine.

Steps
1.Open the zip.php from includes directory
2.Go to line 222 and comment it,or delete it
3. Paste after this line the above code

Code: [Select]
while (!feof($this->tmpfp)) {
    echo(@fgets($this->tmpfp, 8192));
}
fclose ($this->tmpfp);

4.Thats it!

How do you see this?Is it going to bring any serious problems?  :?
« Last Edit: November 04, 2011, 08:27:19 PM by bmwfans »