/    Sign up×
Community /Pin to ProfileBookmark

[script] Simple PHP Compressor

Not sure if this is the right forum for this, but meh, move it if you must ?

Here’s just a simple script for compressing files. It was made on Windows, which is why no attempt to CHMOD a file is made, but it works. So, in order for it to compress the file, or restore it (If you add the restoration stub), the file must be able to be written to. (Hmmm… I should have just done if(is_writeable($file)))

If you add the restoration stub, you can restore your file by calling it as file.php?restore That will restore it with lines ending with only CR. If you want Windows-style line endings, call it with file.php?restore&type=windows

And finally, the script:
[ATTACH]9740[/ATTACH]

Thoughts or comments?

[upl-file uuid=c37d55f9-b8fd-47f9-a860-804a9c209712 size=762B]compressor.zip[/upl-file]

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @hyperlisk spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...