Topic: new topic entry from another script

Hello,

I'd like to post a new topic from another php script. What's the best way?
Is it enough to make entries in tables _topics and _posts?

best regards
Josp