Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • December 03, 2016, 09:41:48 AM
  • Proudly celebrating 10 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 21478 times)

Tuxman

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,764
    • View Profile
    • Donate to Member
Re: ZIP to PHP converter
« Reply #25 on: January 07, 2010, 06:15:55 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,029
  • [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:56 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: 1,764
    • View Profile
    • Donate to Member
Re: ZIP to PHP converter
« Reply #27 on: January 07, 2010, 06:21:20 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:15 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: 638
  • 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:25 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: 7,713
    • View Profile
    • The Blog of Deozaan
    • Read more about this member.
    • Donate to Member
Re: ZIP to PHP converter
« Reply #30 on: April 13, 2010, 05:11:36 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: 117
    • View Profile
    • freestyle (nunchaku) forum.net
    • Donate to Member
Re: ZIP to PHP converter
« Reply #31 on: June 04, 2010, 03:58:38 PM »
The best!!!!!  :Thmbsup:

rgdot

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

Deozaan

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

Quote
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!


worstje

  • Honorary Member
  • Joined in 2009
  • **
  • Posts: 571
  • The Gent with the White Hat
    • View Profile
    • Donate to Member
Re: ZIP to PHP converter
« Reply #34 on: January 22, 2011, 11:09:31 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: 638
  • 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:56 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:30 PM by scancode »