User Guide
Appendix C - PHP3 Script Examples
Axis Communications AB does not provide support for application development of any kind. The
information here is provided "as is", and there is no guarantee that any of the examples shown
will work in your particular application.
Revision 0.9 May 2001 54
TASK.LIST
(Needed to run the script above and it’s important that the file is named task.list)
date(w(0,1,2,3,4,5,6)) pattern((IO0:/)) immune once % /bin/sh : -c
php /etc/httpd/html/seq_ftp_net_structured.php3;
else
$session_time -= ($current_time["usec"] -
$start_time["usec"])/1000000;
}
if($session_time>=$time) error_log("Timed upload
complete",0);
if($failures>=(strlen($sources)*2))
error_log("Too many consecutive failures",0);
}
}
else
{
error_log("Could not log in as ".$user." on
".$ftp_server,0);
}
ftp_quit($session);
}
else
{
error_log("Could not connect to ".$ftp_server.":".$port,0);
}
error_log("Cleaning up",0);
for($c=0;$c<(strlen($sources));$c++)
{ // Reset buffers
//$command="bufferd -stop -
//buffername
//".$buffer_prefix.substr($sources,
//$c,1);
//system($command);
$command="bufferd -reset -buffername
".$buffer_prefix.substr($sources,$c,1);
system($command);
}
?>










