Installation: Difference between revisions

From Artificial Neural Network for PHP
Line 17: Line 17:
* Checking integrity
* Checking integrity


>md5sum ann213*
>md5sum ann214*


* Unpack the source code
* Unpack the source code


>tar -xzf ann213.tar.gz
>tar -xzf ann214.tar.gz


* Copy the directory ANN to your library directory of your project.
* Copy the directory ANN to your library directory of your project.
Line 40: Line 40:
<?php
<?php


require_once 'phar://ann213.phar.gz';
require_once 'phar://ann214.phar.gz';


$objNetwork = new ANN_Network;
$objNetwork = new ANN_Network;

Revision as of 21:26, 23 May 2011

ANN - Artificial Neural Network for PHP 5.x

This chapter describes the steps to implement the ANN source code to your project.

Documentation

Requirements

The latest implementation requires a php environment running PHP 5.2.x or above. If using the client-server mechanism of the network class, the curl extension should be available on the client host which connects to an ANN server. If using class ANN_NetworkGraph GD library with png support should be installed.

Installation

  • Checking integrity
>md5sum ann214*
  • Unpack the source code
>tar -xzf ann214.tar.gz
  • Copy the directory ANN to your library directory of your project.
  • Including to your source
<?php

require_once 'ANN/Loader.php';

$objNetwork = new ANN_Network;

or as phar library (supported as of PHP 5.3.0)

<?php

require_once 'phar://ann214.phar.gz';

$objNetwork = new ANN_Network;
  • Learn to use the library. Have a look to chapter Examples.
  • For further information e.g. about dat-files have a view to the FAQ page.

Performance issues

  • Install Zend Optimizer
  • Do not use any debugger module like xdebug
  • Do not use any profiling tool
  • Do not set "max_execution_time = 0" in your php.ini file
  • Use PHP 5.3.x