Manual

http functions

responseheader($code) {#responseheader}

redirect to system template (template/system/sys_xxx.php) and exit script execution

{{lang:php}}
// not found
if(!$is_article) response_header(404);

// forbidden
if(!$is_auth) response_header(403);

phpjob($url,$postdata=Array()) {#phpjob}

post data to url and leave run in backgorund

Try myPortal 2: