System information

An Introduction to PHP3
Axis Communications AB provides NO 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 1.02 October 2002 31
//directory
if(($file_name != ".") &&($file_name != ".."))
//src, append to dst
if(!ftp_put($session, $destination_name,
$file, FTP_BINARY))
{ // Upload that file to the
//FTP server
error_log("Could not upload file
".$file." as
".$destination_name."\n",0);
}
unlink($file);
}
}
closedir($buffer_handle);
}
}
ftp_quit($session);
}
else
{
error_log("Could not connect to ".$ftp_server,0);
}
error_log("Restarting buffer(s)",0);
for($c=0;$c<(strlen($sources));$c++)
{ // Reset and restart buffers
$command="bufferd -reset -buffername
".$buffer_prefix.substr($sources,$c,1);
system($command);
$command="bufferd -start -buffername
".$buffer_prefix.substr($sources,$c,1)." -pre ".strval($pre)." -
post ".strval($post)." -predelay ".strval($predelay)." -postdelay
".strval($postdelay)." -uri
ftp://jpg/".substr($sources,$c,1)."/".$image_format.".jpg";
system($command);
}
?>
$file =
"/tmp/".$buffer_prefix.substr($sources,$i
,1)."/".$file_name;
$destination_name = $destination .
$buffer_prefix.substr($sources,$i,1);
$destination_name .=
strchr($file_name,"_");
else
{
}
error_log("Could not login as ".$user." on ".$ftp_server,0);
{ // That is a regular file
//extract timestamp from
}