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 23
Although the argument $file can be left unspecified, this is NOT recommended, as this sets
smtpclient to 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.
4.1.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.
Returns 1 if it reads ON, otherwise returns 0.
$num_of_checks is the number of attempts to read the file /tmp/pppstat.log.
function ppp_start()
{
...
}
Called from ppp_online().
Sends SIGUSR1 (10) to the currently running ppp-wrapper.
If the wrapper is not running, the function returns -1 and an error is logged in the
syslog.
function ppp_stop()
{
...
}