The first function that is calles is main(), and after finishing it, the program is exited with exit.
main() - In main the function read_config() is called for getting the configuration data and afterwards the SPIP core function create_spip() is called.
read_config() - reads the SPIP configuration file config.spip in the working directory with XML::Simple into an internal hash structure.
create_spip() - This is the core function of SPIP. It calls all the other functions to create the page data of all pages and then writes the HTML files.