topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 11:40 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: ZIP to PHP converter  (Read 51490 times)

Tuxman

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,466
    • View Profile
    • Donate to Member
Re: ZIP to PHP converter
« Reply #25 on: January 07, 2010, 06:15 PM »
For the intended use of this program (as I understand it: upgrading websites, especially pre-fab systems), it should.
Isn't that related to the files' CHMOD?

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: ZIP to PHP converter
« Reply #26 on: January 07, 2010, 06:17 PM »
For the intended use of this program (as I understand it: upgrading websites, especially pre-fab systems), it should.
Isn't that related to the files' CHMOD?
Of course, but if you've found a way to inject files you're normally running with a user account that has write access to the files you're interested in overwriting - duh?
- carpe noctem

Tuxman

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,466
    • View Profile
    • Donate to Member
Re: ZIP to PHP converter
« Reply #27 on: January 07, 2010, 06:21 PM »
you're normally running with a user account that has write access to the files you're interested in overwriting - duh?
Now that is the server administrator's fault, right? If root uploads something he doesn't actually know into a folder where he could, theoretically, destroy a lot of things and runs the file, he is, basically, a jerk. In this case it is not of any interest, if the file is a zipped PHP or has to be unpacked via shell or anything...

_Tenshi

  • Participant
  • Joined in 2010
  • *
  • Posts: 1
    • View Profile
    • Donate to Member
Re: ZIP to PHP converter
« Reply #28 on: March 26, 2010, 04:26 AM »
This is amazing, but it doesn't delete the file after its used, maybe auto deletes OR maybe rewrite from .php to .txt or .done (fake extention but still there) or no extension what so ever.

also maybe a file for options, if i wanna have it delete afterwards, or rename it (blah.php to blah.bak)
and looking for something that takes whats in the directory and makes it into zip (in linux servers)

anyways LOVE THIS SO MUCH.

scancode

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 641
  • I will eat Cody someday.
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: ZIP to PHP converter
« Reply #29 on: March 26, 2010, 09:20 AM »
This is amazing, but it doesn't delete the file after its used, maybe auto deletes OR maybe rewrite from .php to .txt or .done (fake extention but still there) or no extension what so ever.

I'll add that option.

also maybe a file for options, if i wanna have it delete afterwards, or rename it (blah.php to blah.bak)
and looking for something that takes whats in the directory and makes it into zip (in linux servers)

Sure thing.

anyways LOVE THIS SO MUCH.

Thanks!

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Points: 1
  • Posts: 9,747
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: ZIP to PHP converter
« Reply #30 on: April 13, 2010, 05:11 PM »
I just used this to upgrade a DokuWiki installation. It worked great! Thanks so much to both scancode for making it and icekin for requesting the idea!

psionics

  • Participant
  • Joined in 2007
  • *
  • Posts: 119
    • View Profile
    • freestyle (nunchaku) forum.net
    • Donate to Member
Re: ZIP to PHP converter
« Reply #31 on: June 04, 2010, 03:58 PM »
The best!!!!!  :Thmbsup:

rgdot

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2,192
    • View Profile
    • Donate to Member
Re: ZIP to PHP converter
« Reply #32 on: June 04, 2010, 04:07 PM »
This is a great thing, thanx
* rgdot just seen this thread

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Points: 1
  • Posts: 9,747
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: ZIP to PHP converter
« Reply #33 on: January 22, 2011, 10:58 AM »
I just tried to use this to convert a fairly large zip file (~330MB) and I got an error:

Error while trying to write the file, aborting.
7Out of memory

That 7 is not a typo. It does end up creating a 0 byte file. Any chance to get this fixed? Thanks!
« Last Edit: June 16, 2019, 01:11 PM by Deozaan »

worstje

  • Honorary Member
  • Joined in 2009
  • **
  • Posts: 588
  • The Gent with the White Hat
    • View Profile
    • Donate to Member
Re: ZIP to PHP converter
« Reply #34 on: January 22, 2011, 11:09 AM »
It could very well be a limitation from the server administrator. They can define how much memory php scripts can use, and if you have a large zip file I can imagine that amount gets exceeded. Especially when you use the stronger forms of compression as those take more memory to decompress as well. Maybe you can work around it by compressing the zip file a bit less?

scancode

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 641
  • I will eat Cody someday.
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: ZIP to PHP converter
« Reply #35 on: January 22, 2011, 01:16 PM »
Woops! The 7 is not a typo, it's VB's error code for Out Of Memory.

I never tested with such big files :(
I'll try to fix.

PS: Worstje, it isn't a PHP error, but one from the app. I guess it happens in the base64 encoding, though not sure yet.
« Last Edit: January 22, 2011, 01:18 PM by scancode »

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Points: 1
  • Posts: 9,747
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: ZIP to PHP converter
« Reply #36 on: June 16, 2019, 01:11 PM »
I've been using this for years and it has almost always been great. A big thank you to scancode for making this useful little utility. :Thmbsup:



But I just tried to use this with another fairly large (~116 MB) file, but smaller file than my previous attempt, and got a different error:

Error while trying to write the file, aborting.
14Out of string space
« Last Edit: June 19, 2019, 09:03 PM by Deozaan »

scancode

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 641
  • I will eat Cody someday.
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: ZIP to PHP converter
« Reply #37 on: June 19, 2019, 12:19 PM »
Can't believe someone is still using this thing. Time to make an updated version! Stay tuned ~

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 11,186
    • View Profile
    • Donate to Member
Re: ZIP to PHP converter
« Reply #38 on: June 19, 2019, 01:05 PM »
I'm glad someone is still using it... I'd not seen this before!

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 11,186
    • View Profile
    • Donate to Member
Re: ZIP to PHP converter
« Reply #39 on: September 14, 2019, 06:28 PM »
Can't believe someone is still using this thing. Time to make an updated version! Stay tuned ~


This thing is the best thing since sliced bread!  Just a warning on the deprecated functions:

Code: Text [Select]
  1. [14-Sep-2019 23:25:39 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Archive_Zip has a deprecated constructor in /home/redacted/zipfilename.zip.phpzip.php on line 1
  2. [14-Sep-2019 23:25:39 UTC] PHP Deprecated:  The each() function is deprecated. This message will be suppressed on further calls in /home/redacted/zipfilename.zip.phpzip.php on line 1

Thanks for making this!  It saved me a lot of time!  Donationcredits coming your way!