in reply to Include external variables into script

Hello Blackpitch

Just a reminder ..

Always put 1; on the last line of the config-file in case You use the require (maybe 'do' too?) method and the last value isn't true.

example:

$var1 = 'monkey'; $var2 = 'hippo'; $var3 = 0; 1;

Without the 1; the require-command will fail and your script will produce an error.

I use the require-method, but I'm thinking of using mysql to store my configuration and use the config-files only to initialize the database with default values and ofcourse keep the mysql db and user information in.

Regards
Joakim