Alert . Lib - Axis 2400 - PHP3 GUIDE Manual

Php3 guide
Table of Contents

Advertisement

Appendix A – Included Application
bufferd -start -buffername ALARM -uri
ftp://axis-cgi/jpg/1/halfsize.jpg -pre 5 -post
2 -postdelay 2000
(This starts the buffer and can be specified in a start-up script or as an
event for utask) When an event occurs, as specified for utask (see
below) the following command sequence is used to handle the buffer:
bufferd -stop ALARM
{ handle images}
bufferd -reset ALARM
bufferd -start -buffername ALARM -uri
ftp://axis-cgi/jpg/1/halfsize.jpg -pre 5 -post
2 -postdelay 2000
The handling of the images can for instance be done with the PHP3-function 'ftp()'
below (see also /usr/php/template_upload_cont.php3 on the device).
5.4 The PHP-libs
Included in the distributed firmware are a few PHP3-scripts that define functions,
which are intended to help developers use the camera's functionality. These scripts are
located in the directory /usr/php. Currently the included files are:
/usr/php/alert.lib
/usr/php/ftp.lib
/usr/php/log.lib
/usr/php/mail.lib
/usr/php/ppp.lib
In order to use these functions the files need to be included in the script using them.
The arguments used in the function-calls are also required to be defined/declared in
the calling script.
5.4.1 alert.lib
This script implements a function that connects to a host and leaves a message.
This function requires an application be running on the contacted host that can handle
the alert.
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.91 June 2001
25

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