what is the best way to store configuration information for a php application? should i just store it in a file on the server? or is there a better way to do it?
if a normal file is the best then what kind of file permissions would be best for that file?
Are you talking about static configuration (always the same), or dynamic configuration (changes everytime, or almost, a script is loaded) ?
If static, I would personally use a file, otherwise, a database...
its static. its database connection information. IP, user, pass, etc. so it doesnt make sense to put it in the DB.
im trying to use fopen to create the file and store the setup info but i keep getting permission errors. should I just give "everyone" write permissions? or is there a way to only give the php program write permission?