add class autoloading to example scripts to they could be used directly

pull/2/head
toimtoimtoim 8 years ago
parent f6818a21c4
commit 8c482eee3d
  1. 1
      examples/example_750841_Mmemory.php
  2. 2
      examples/example_datatype.php
  3. 1
      examples/example_fc1.php
  4. 2
      examples/example_fc15.php
  5. 2
      examples/example_fc16.php
  6. 1
      examples/example_fc2.php
  7. 2
      examples/example_fc22.php
  8. 2
      examples/example_fc23.php
  9. 1
      examples/example_fc3.php
  10. 2
      examples/example_fc4.php
  11. 2
      examples/example_fc5.php
  12. 2
      examples/example_fc6.php

@ -1,4 +1,5 @@
<?php
require __DIR__ . '/../vendor/autoload.php';
use PHPModbus\ModbusMaster;
use PHPModbus\PhpType;

@ -1,4 +1,6 @@
<?php
require __DIR__ . '/../vendor/autoload.php';
use PHPModbus\ModbusMaster;
use PHPModbus\PhpType;

@ -1,4 +1,5 @@
<?php
require __DIR__ . '/../vendor/autoload.php';
use PHPModbus\ModbusMaster;

@ -1,4 +1,6 @@
<?php
require __DIR__ . '/../vendor/autoload.php';
use PHPModbus\ModbusMasterUdp;
$ip = filter_var($_GET['ip'], FILTER_VALIDATE_IP) ? $_GET['ip'] : '192.192.15.51';

@ -1,4 +1,6 @@
<?php
require __DIR__ . '/../vendor/autoload.php';
use PHPModbus\ModbusMasterUdp;
$ip = filter_var($_GET['ip'], FILTER_VALIDATE_IP) ? $_GET['ip'] : '192.192.15.51';

@ -1,4 +1,5 @@
<?php
require __DIR__ . '/../vendor/autoload.php';
use PHPModbus\ModbusMaster;

@ -1,4 +1,6 @@
<?php
require __DIR__ . '/../vendor/autoload.php';
use PHPModbus\ModbusMasterUdp;
$ip = filter_var($_GET['ip'], FILTER_VALIDATE_IP) ? $_GET['ip'] : '192.192.15.51';

@ -1,4 +1,6 @@
<?php
require __DIR__ . '/../vendor/autoload.php';
use PHPModbus\ModbusMasterUdp;
$ip = filter_var($_GET['ip'], FILTER_VALIDATE_IP) ? $_GET['ip'] : '192.192.15.51';

@ -1,4 +1,5 @@
<?php
require __DIR__ . '/../vendor/autoload.php';
use PHPModbus\ModbusMaster;

@ -1,4 +1,6 @@
<?php
require __DIR__ . '/../vendor/autoload.php';
use PHPModbus\ModbusMasterUdp;
$ip = filter_var($_GET['ip'], FILTER_VALIDATE_IP) ? $_GET['ip'] : '192.192.15.51';

@ -1,4 +1,6 @@
<?php
require __DIR__ . '/../vendor/autoload.php';
use PHPModbus\ModbusMasterUdp;
$ip = filter_var($_GET['ip'], FILTER_VALIDATE_IP) ? $_GET['ip'] : '192.192.15.51';

@ -1,4 +1,6 @@
<?php
require __DIR__ . '/../vendor/autoload.php';
use PHPModbus\ModbusMasterUdp;
$ip = filter_var($_GET['ip'], FILTER_VALIDATE_IP) ? $_GET['ip'] : '192.192.15.51';

Loading…
Cancel
Save