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 28
$subject Message subject (default is 'no subject')
$from (not null) Message's 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 that a valid mail-server has been entered in the settings for the
camera.
Although the argument '$file' can be unspecified, this is NOT recommended as this
sets smtpclient in interactive mode and thus locks the execution of PHP.
On error, the function returns '1' (no sender specified) or '2' (no recipient specified)
otherwise the function returns '0'.
5.4.5 ppp.lib
These functions allow a PHP3-script to control the use of ppp-connections through the
ppp-wrapper.
function ppp_getpid()
{
...
}
Called from ppp_start() and ppp_stop().
Returns current pppwrapper pid as reported by the file
'/var/log/pppwrapper.pid'.
function ppp_getstat( $num_of_checks )
{
...
}
Called from ppp_online().
Returns current ppp status by reading the pppstat.log.










