Appendix C - PHP3 Script Examples
This script will upload image buffers specified
by use of SMTP and the Ethernet interface
Edit your own parameters below the line.
<?
$buffer_prefix = "CAM";
$sources = "1";
$image_format = "fullsize";
$pre = 2;
$post = 2;
$predelay = 1000;
$postdelay = 1000;
$smtp_server = "mail.somewhere.com";
$subject = "test";
$from = " someone@somewhere.com";
$reply = " someone@somewhere.com ";
$cc = " someone@somewhere.com ";
$body = "/tmp/var/log/messages";
$to = " someone@somewhere.com ";
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
(alarm_smtp_net.php3)
// The prefix of the name
//of the buffer(s) started
// The index of the name(s)
//of the buffer(s) started
// The format of the images
//specified to be taken
//according to the HTTP-API
// Number of pre alarm
images //to be taken
// Number of post alarm
//images to be taken
// Delay between pre images
//in milliseconds
// Delay between post
//images in milliseconds
// The server to use as
//mail server
// The subject to use in
//the mail
// The specified sender
// The specified receiver
//of replies
// The specified receiver
//of a copy of this mail
// The body to insert into
//the mail. Note that this
//must be specified and
//point to valid file
// The specified recipient
55
Need help?
Do you have a question about the 2400 - PHP3 GUIDE and is the answer not in the manual?
Questions and answers