Axis 2400 - PHP3 GUIDE Manual page 42

Php3 guide
Table of Contents

Advertisement

Appendix C - PHP3 Script Examples
There is no need to edit anything below this line.
for($c=0;$c<(strlen($sources));$c++)
{
$command="bufferd -stop -buffername
".$buffer_prefix.substr($sources,$c,1);
system($command);
}
$command = "smtpclient";
$command .=" -L -S ".$smtp_server;
$command .=" -s ".$subject;
$command .=" -f ".$from;
$command .=" -r ".$reply;
$command .=" -c ".$cc;
$command .=" -b ".$body;
$command .=" ".$to;
exec($command);
error_reporting(0);
for($c=0;$c<(strlen($sources));$c++)
{
$status_file = "/tmp/".$buffer_prefix.substr($sources,$c,1)."/status";
while(!is_file($status_file))
{
sleep(($predelay+$postdelay)/1000);
}
unlink($status_file);
}
error_reporting(E_ALL);
$session = ftp_connect($ftp_server, $port);
if($session)
{
if(ftp_login($session, $user, $pass))
{
if (!ftp_pasv($session, $passive_mode == "yes"))
{
error_log("Could not set passive mode",0);
}
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
// Connection successfully
//established
// Successful login attempt
41

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?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

2401 - php3 guide2420 - php3 guide240024012420

Table of Contents