Axis 2400 - PHP3 GUIDE Manual page 46

Php3 guide
Table of Contents

Advertisement

Appendix C - PHP3 Script Examples
There is no need to edit anything below this line.
<?
error_reporting(E_ALL);
function conv($value)
{
if($value < 10) {
$value = "0$value";
}
return strval($value);
}
for($c=0;$c<(strlen($sources));$c++)
{
//$command="bufferd -reset -buffername
//".$buffer_prefix.substr($sources,$c,1);
//system($command);
$command="bufferd -start -buffername ";
$command.=$buffer_prefix.substr($sources,$c,1);
$command.=" -snapshot -pre 1 -predelay ";
$command.=strval($delay);
$command.=" -uri ftp://jpg/";
$command.=substr($sources,$c,1);
$command.="/";
$command.=$image_format;
$command.=".jpg -format ";
$command.=$file_format;
system($command);
}
error_reporting(0);
$current_counter = 1;
if($fd = fopen("/tmp/counter","r"))
{
while($buf = fread($fd,8))
{
$current_counter .= $buf;
}
$current_counter = intval($current_counter);
fclose($fd);
}
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
//$suffix = "sequence_max";
// Or "sequence_max" for an
//index up to the internal
//maximum integer
// A function for converting
//single digit integers into
//two digit integers
// Start the buffers as
//specified by the parameters
//above
// If the sought after file
//exist, retrieve the index to
//start at
45

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 2400 - PHP3 GUIDE and is the answer not in the manual?

This manual is also suitable for:

2401 - php3 guide2420 - php3 guide240024012420

Table of Contents