Configuration file

Exemplary of file is included in distribution package (see auto.p).

This is the cornerstone of class
MAIN. It may contain configuration method, which will be executed first, before method auto, to set vital system parameters.

After configuration method is executed, output charset and code charset may be specified (default charset in both cases is

Recommended code:
#source/client charsets

Note: if you want methods
upper and lower (class string) to work with languages other than English correctly, you will need to correctly specify $request:charset.

It is also recommended that you specify path to classes used at your site here:

…as well as connect string for SQL-server you are going to use (example for ODBC):

Note: it will be used in your code like…

It is recommended that you also define method unhandled_exception, which will output error messages on problems at your site.

Note: configuration file is definitely optional. You can place your configuration method in file
auto.p in your web-space root. Configurations, however, will most probably be different for different hosting locations (for example: debug and production servers). That is why it would be more comfortable to keep these differences in a separate file outside web-space.

Copyright © 1997–2021 Art. Lebedev Studio | Last updated: 28.01.2021