Reload config from custom PHP

Hello,

I’m developing a custom PHP that handles some automatic operations on asterisk, like FreePBX does.

For now what I have, is an app that fill up my data to the mysql freepbx server. Now I’m trying to reload the configuration through the do_reload() function stored in functions.inc.php, to apply the changes I made.

Can anyone point me if i’m in the good direction to do this? I think I have to include some extra freepbx files to get this working.

Is there any other solution to manage this?