Comments (6)
It would certainly be easy enough to add a php.in I setting. Would that suffice for you? Haven't looked at this code for a bit but I'll take a look tonight.
from php-xz.
Damn auto complete on my phone. Php.ini setting is what that should be.
from php-xz.
I mean that sometimes I need fast compression with bad level 30-60%, but when I save file or dir to long time on server I try to use best compression level. Maybe function xzopen get one more parameter LEVEL? Is it possible?
from php-xz.
Yes, it wouldn't be a problem to add an optional parameter for compression level to XZ open and keep that compression level associated with the resource handle. I'll take a look and see what I can come up with. I'll comment back here when I have something for you to check out.
from php-xz.
I just threw this together in about 30 minutes before work. I haven't had time to test it really. Play around and see if that works for you. I'll take a closer look and make sure I didn't miss anything later.
Added optional parameter level for xzopen.
Looks like this: $fh = xzopen('test.xz', 'w', 0);
Proto: xzopen($filename, $mode, $compression_level);
compression_level must be 0-9 inclusive.
Let me know if this works.
from php-xz.
thank you for commits.
I'll try and let you know
from php-xz.
Related Issues (9)
- Segfault 64-bit Ubuntu 12.10 PHP 5.4.11 HOT 2
- PHP7 compatibility HOT 2
- Project is not maintained anymore. May I take it over? HOT 4
- lzma stream filters HOT 1
- Add uri scheme fopen wrapper.
- error: PHP_FE_END undeclared here (not in a function) HOT 4
- Cant install HOT 1
- Parallel, multi-threaded compression?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-xz.