Axis 2400 - PHP3 GUIDE Manual

Axis 2400 - PHP3 GUIDE Manual

Php3 guide

Advertisement

Quick Links

PHP3 Guide
2400/2401/2420

Advertisement

Table of Contents
loading

Summary of Contents for Axis 2400 - PHP3 GUIDE

  • Page 1 PHP3 Guide 2400/2401/2420...
  • Page 2: Table Of Contents

    5.4.6 E XAMPLES OF USAGE 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.
  • Page 3 7.1 S CRIPT EXAMPLES 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.
  • Page 4 Axis Video products to fit their specific needs. 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.
  • Page 5 A lot of information about PHP can be found on the Internet: http://www.PHP.net 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.
  • Page 6: Php3 And The Video Server

    Appendix A at the end of this document. 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.
  • Page 7: Php3 Script

    Note: It´s not possible to downgrade to OSYS again, after having upgraded to Linux 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.
  • Page 8: R Equirements For Getting Started

    FTP Server SMTP Server 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.
  • Page 9: S Cripts

    How to upload a script to the video server and to run it is shown in section 3.3.4 and 3.3.5. 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.
  • Page 10: S Cript Generated By The A Pplication W Izard

    How to accomplish the above, follow the instructions on the next page. 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.
  • Page 11: Get The Script That The Wizard In The Video Server Has Created

    11. Type: get <the script that is to be changed> 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.
  • Page 12 The body to insert into the mail. Note that this must be specified and point 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.
  • Page 13: T He Task - Scheduler

    When /etc/task.list has been created, or modified, a SIGUSR1 need to be sent 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.
  • Page 14: Syntax

    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.
  • Page 15: Examples

    Note: When writing the scripts use for example Notepad. 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.
  • Page 16 8. Then upload the file to the Video Server with the command: put Eg: c:\axis\PHP put <filnamn.php3> 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.
  • Page 17: H Ow To Activate The Scripts

    (If it still doesn’t happens anything look at the log file for errors) 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.
  • Page 18: Telnet

    Save the file 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.
  • Page 19 6. Then activate the script by typing: Eg: php <filename> 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.
  • Page 20 PHP3 Guide 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...
  • Page 21: Troubleshooting

    3. Consult the FAQ and technical notes on the Axis product support page for additional help. 4. Contact the local supplier, from whom the product was purchased, for assistance.
  • Page 22: I Ntroduction

    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.
  • Page 23: B Uilt In Commands

    'http'. The document can be found on our web site 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.
  • Page 24: By Default

    The default format is 'snapshot_%y%m%d_%H%M%S_%i4'. 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.
  • Page 25: E Xamples

    The following example illustrates the steps to take (using the examples above): 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.
  • Page 26: Alert . Lib

    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.
  • Page 27 $suffix Valid options are: "default", "date", "sequence", 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.
  • Page 28: Mail . Lib

    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.
  • Page 29 Called from ppp_online(). Returns current ppp status by reading the pppstat.log. 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.
  • Page 30 $ppp_interval is the delay in seconds between connection attempts. 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.
  • Page 31: E Xamples Of Usage

    - Could not login on host"); else if($res == 3) 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.
  • Page 32 - Could not send mail:no recipient\n"); ?> 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.
  • Page 33: Appendix B - Shell Commands

    Same as exit above (???) 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.
  • Page 34 Reboot the system 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.
  • Page 35 If <filename> does not exist, a file <filename> is created. 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.
  • Page 36: Appendix C - Php3 Script Examples

    Turn off this option with the row: error_reporting(0); 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.
  • Page 37: S Cript Examples

    //must exist on the server //prior to upload. 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.
  • Page 38 $i,1); $buffer_handle = opendir($directory); 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.
  • Page 39 ?> 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.
  • Page 40 % /bin/sh : -c php /etc/httpd/html/alarm_ftp_net.php3; 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.
  • Page 41 $to = " someone@somewhere.com "; // The specified recipient 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.
  • Page 42 (!ftp_pasv($session, $passive_mode == "yes")) error_log("Could not set passive mode",0); 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.
  • Page 43 $command="bufferd -reset -buffername ".$buffer_prefix.substr($sources,$c,1); system($command); 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.
  • Page 44 % /bin/sh : -c php /etc/httpd/html/alarm_ftp_note_smtp_net.php3; 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.
  • Page 45 //$counter_max = 10; // Limited by an integer 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.
  • Page 46 $current_counter = intval($current_counter); fclose($fd); 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.
  • Page 47 //specified $dest=$destination.$buffer_prefix.substr($source s,$active_buffer,1); 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.
  • Page 48 $inc = 0; 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.
  • Page 49 $session_time = ($current_time["sec"] - $start_time["sec"]); 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.
  • Page 50 % /bin/sh : -c php /etc/httpd/html/seq_ftp_net.php3; 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.
  • Page 51 //value of -1 means //indefinetly. 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.
  • Page 52 $active_buffer = -1; $failures=0; 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.
  • Page 53 // If the source file is a //present 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.
  • Page 54 $session_time += ($current_time["usec"] - $start_time["usec"])/1000000; 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.
  • Page 55 % /bin/sh : -c php /etc/httpd/html/seq_ftp_net_structured.php3; 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.
  • Page 56 $to = " someone@somewhere.com "; // The specified recipient 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.
  • Page 57 $command .=" ".$to; system($command); 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.
  • Page 58 % /bin/sh : -c php /etc/httpd/html/alarm_smtp_net.php3; 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.
  • Page 59 //path must exist on the //server prior to upload. 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.
  • Page 60 $to = " someone@somewhere.com "; // The specified recipient 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.
  • Page 61 $buffer_handle = opendir($directory); 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.
  • Page 62 // A function for //converting single digit 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.
  • Page 63 //converting single digit 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.
  • Page 64 // If the source file is a //present 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.
  • Page 65 //traffic) usleep($wait - $ellapsed); 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.
  • Page 66 ".$seq_buffer_prefix.substr($seq_sources,$c,1); system($command); ?> 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.
  • Page 67 % /bin/sh : -c touch /tmp/alarm; 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.

This manual is also suitable for:

2401 - php3 guide2420 - php3 guide240024012420

Table of Contents