System information

An Introduction to PHP3
Axis Communications AB provides NO 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 1.02 October 2002 22
Parameter Description
$passive_mode
Choose passive mode. on or off.
In passive mode, data connections are initiated by the client, rather than
by the server.
On errors, the function returns one of the following:
1 (connection failed)
2 (login failed)
3 (upload failed)
4 (parameter error)
5 (could not set passive mode)
Parameter errors occurs when any of $host, $user, $pass, $source or $destination
is unspecified, or when the parameter $suffix has an invalid value.
4.1.3 log.lib
This function allows a PHP3-script to append an entry to the system log.
function log($message)
{
...
}
Parameter Description
$message
Message to be appended to the system log.
The function makes a call to the PHP3-function error_log($message,0).
4.1.4 mail.lib
This function issues a system call to smtpclient.
function mail($subject,$from,$reply,$to,$copy,$file,$attach)
{
...
}
Parameter Description
$subject
Message subject (default is no subject).
$from
(not null) Message author.
$reply
Reply should be sent to this user (default is $from).
$to
(not null) Recipients.
$copy
Copy the message to other recipients.
$file
Message read from file.
$attach
File to attach.
The script requires a valid mail-server to be entered in the camera/video server settings.