magicalex / writeinifile Goto Github PK
View Code? Open in Web Editor NEWWrite-ini-file php library for create, remove, erase, add, and update ini file
License: GNU General Public License v3.0
Write-ini-file php library for create, remove, erase, add, and update ini file
License: GNU General Public License v3.0
I have a project which stores a third party command. The command is as follows: ./bin/cscript --title="Greg's program" --output=./dist/
.
The output of WriteiniFile produces something like this:
[compiler]
name=cscript
command="./bin/cscript --title="Greg's program" --output=./dist/"
I believe that the double quotes should be escaped, as parsing the produced ini file fails with syntax error, unexpected 'G'
.
PHP's parse_ini_file
function's second argument is $process_sections
. By default it is set to false.
I wanted to write a simple .ini file (without sections) but noticed that your package requires that the .ini file has sections so it won't work on simple .ini files.
I'll include a pull request that will let people specify the $process_sections attribute when needed.
If a value is an empty string, it's converted to 0, which is generally not what's wanted.
The encode() method would need to be changed.
When writing the .ini file the unix end of line, \n
, character is always used. This breaks some Windows applications that parse ini files assuming \r\n
has been used.
In this method https://github.com/Magicalex/WriteiniFile/blob/master/src/WriteiniFile.php#L93 \n
should be replaced by PHP_EOL
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.