Updating asterisk static realtime

Hi, using asterisk 1.6.2.8. I am loading sip.conf and extensions.conf from a database, using static realtime.
I have this working however the changes don’t seem to be reflected unless i reload the modules chan_sip.so
and pbx_config.so. This is ok, but how do i reload these modules from my php script. I basically want to add the
entries to the db and issue a reload. To test it currently i am manually going into the CLI and doing this.
Also i don’t want to use dynamic relatime for this.

Thanks