I want to store my database connection information in a single file, which both PHP and Ruby scripts can use.
Should I use name-value pairs, yaml, xml, or something else?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
YAML is probably a good option – it is very simple to implement, yet it can take you a long way with flexibility.
BTW. Sounds as if you may have some similar problems that are discussed on railsforphp.com Here is the article on PHP and YAML:
http://railsforphp.com/2008/01/08/php-meet-yaml/