There is one more reason. It's always better to keep the settings in a separate file. Not only you can access them easily from several separate scripts, but you also do not have to modify the scripts themselves whenever something changes.
Imagine you use the same scripts on several machines. If you have the settings inline, you have to be very carefull each time you update or fix the code. On the other hand if you keep the settings separate, you can upload the new version to all servers and be done with it.
Jenda@Krynicky.cz
In reply to Re: Possible CGI/database security issue?
by Jenda
in thread Possible CGI/database security issue?
by mephit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |