LifeWay5
asked on
Read & Write into .ini file, using MySQL + Cron.
I have .ini file in server. I want to update that file automatically with data which is in MySQL database.
How or what kind of ways are there to do it? Currently Im thinking about using MySQL and Cron but I have no idea about where to start.
How or what kind of ways are there to do it? Currently Im thinking about using MySQL and Cron but I have no idea about where to start.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
help`?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thats more getting there but Im not really a coder, would need help to code something which could change ini file.
You're going to need to learn some PHP or bash scripting to get this done. I recommend starting with PHP just because the syntax is easier and the documentation is well-organized: http://www.php.net. Break the job up into pieces:
1) Make a PHP script that connects to the database and returns data.
2) Make a PHP script that reads an INI file, and writes an INI file.
3) Make a PHP script that changes bits of text within a large area of text.
When you have those three things, put them all together and you have your application. Start out with #1 and see where it leads you. Come back if you run into difficulties, and I'll help you through the specifics.
1) Make a PHP script that connects to the database and returns data.
2) Make a PHP script that reads an INI file, and writes an INI file.
3) Make a PHP script that changes bits of text within a large area of text.
When you have those three things, put them all together and you have your application. Start out with #1 and see where it leads you. Come back if you run into difficulties, and I'll help you through the specifics.
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
ASKER
I want to write data which is in MySQL at host yy.yy.yy.yy into public_html/whateverfilena