Appendix C - PHP3 Script Examples
7.1 Script examples
Important:
Before using the scripts on the following pages please read chapter
1 and 2 in this document.
This script will upload these specified images
buffers via FTP and the Ethernet interface
Edit your own parameters below this line.
<?
$buffer_prefix = "CAM";
$sources = "1";
$image_format = "fullsize";
$pre = 2;
$post = 2;
$predelay = 1000;
$postdelay = 1000;
$ftp_server = "10.13.9.130";
$port = "21";
$user = "user";
$pass = "pass";
$passive_mode = "no";
$destination = "upload/2400test";
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_ftp_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 upload to
// The port to connect to
// The user to login as
// The pass to use for the
//user
// Choose passive mode on
//("yes") or off ("no").
//(See documentation on FTP
//protocol)
// The path to append to
//all uploads. This path
//must exist on the server
//prior to upload.
36
Need help?
Do you have a question about the 2400 - PHP3 GUIDE and is the answer not in the manual?
Questions and answers