User Guide

Appendix A – Included Application
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 27
"sequence_max".
$countermax
Defines the suffix maximum index.
Only applies when $suffix = "sequence".
$startcount
Defines start value for the suffix index.
Only applies when $suffix = ("sequence"|"sequence_max").
$port Port on the FTP-server to connect to.
$passive_mode
Choose passive mode. "on" or "off".
In passive mode, data connections are initiated by the client,
rather than by the server.
On error, the function returns '1' (connection failed), '2' (login failed), '3' (upload
failed), '4' (parameter error) or '5' (could not set passive mode).
Parameter error occurs when any of $host, $user, $pass, $source or $destination is
unspecified, or the parameter $suffix has an invalid value.
5.4.3 log.lib
This function allows a PHP3-script to append an entry to the system log.
function log($message)
{
...
}
$message Message to be appended to the system log
The function makes a call to the PHP3-function 'error_log($message,0)'.
5.4.4 mail.lib
This function issues a system call to smtpclient.
function
mail($subject,$from,$reply,$to,$copy,$file,$att
ach)
{
...
}