Axis 2401 - PHP3 GUIDE Technical Information Seite 31

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 85
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 30
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
}
Seitenansicht 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 84 85

Kommentare zu diesen Handbüchern

Keine Kommentare