I have this app I just wrote, and I wanted to give my users a more 'standard' .conf file, instead of forcing them to open up the script, and dig through and change variables (Some people get confused by this... Go figure). SO, I wanted to give a .conf sort of like the apache conf file where you'll see things like:
ENCRYPTION=1 #Set this to 0 if you don't want encryption ENCTYPE=3DES # 3DES or BLOWFISH BASEDIR=/home/user # Path to something ########## Sockets ################# PORT=1200 # Port to connect to TYPE=TCP # TCP or UDP HOST=localhost # Hostname You get the idea. Anyway, I could make a file like this and then 'require' it I suppose, then run a regex on the lines and assign the variables THAT way, but I was curious if anyone could think of a better way to do this instead of forcing myself to make all these un-needed lines in my script just to get the variables. Maybe a module or something? Any suggestions would be appreciated! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]