Axis 2401 - PHP3 GUIDE Informations techniques Page 31

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 85
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
}
Vue de la page 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 84 85

Commentaires sur ces manuels

Pas de commentaire