Skip to content

Commit 1a0ea77

Browse files
author
Gunter Grodotzki
committed
allow relative paths in examples
1 parent 0bb6b41 commit 1a0ea77

25 files changed

+52
-2
lines changed

examples/check_contact.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Frame\Command\Check\Contact as CheckContact;

examples/check_domain.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Frame\Command\Check\Domain as CheckDomain;

examples/check_host.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Frame\Command\Check\Host as CheckHost;

examples/connect.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Client as EPPClient;

examples/create_contact.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Frame\Command\Create\Contact as CreateContact;
1012

1113
$frame = new CreateContact;
1214
$frame->setId('CONTACT1');
1315
$frame->setName('Günter Grodotzki');
14-
$frame->setName('Peter Fütterer');
16+
$frame->setName('Jun Grodotzki');
1517
$frame->setOrganization('weheartwebsites UG');
1618
$frame->addStreet('Rönskenstraße 23');
1719
$frame->addStreet('Around the Corner');

examples/create_contact_skipint.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Frame\Command\Create\Contact as CreateContact;
@@ -12,7 +14,7 @@
1214
$frame->skipInt();
1315
$frame->setId('CONTACT1');
1416
$frame->setName('Günter Grodotzki');
15-
$frame->setName('Peter Fütterer');
17+
$frame->setName('Jun Grodotzki');
1618
$frame->setOrganization('weheartwebsites UG');
1719
$frame->addStreet('Rönskenstraße 23');
1820
$frame->addStreet('Around the Corner');

examples/create_domain.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Frame\Command\Create\Domain as CreateDomain;

examples/create_host.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Frame\Command\Create\Host as CreateHost;

examples/delete_contact.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Frame\Command\Delete\Contact as DeleteContact;

examples/delete_domain.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Frame\Command\Delete\Domain as DeleteDomain;

examples/delete_host.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Frame\Command\Delete\Host as DeleteHost;

examples/extension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Extension\COZA\Info\CozaContact as CozaContactInfoExtension;

examples/info_contact.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Frame\Command\Info\Contact as InfoContact;

examples/info_domain.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Frame\Command\Info\Domain as InfoDomain;

examples/info_host.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Frame\Command\Info\Host as InfoHost;

examples/login.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Frame\Command\Login;

examples/login_extensions.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Frame\Command\Login;

examples/logout.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Frame\Command\Logout;

examples/poll.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Frame\Command\Poll;

examples/renew_domain.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Frame\Command\Renew\Domain as RenewDomain;

examples/transfer_contact.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Frame\Command\Transfer\Contact as TransferContact;

examples/transfer_domain.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Frame\Command\Transfer\Domain as TransferDomain;

examples/update_contact.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Frame\Command\Update\Contact as ContactUpdate;

examples/update_domain.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Frame\Command\Update\Domain as UpdateDomain;

examples/update_host.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
error_reporting(E_ALL);
55
ini_set('display_errors', true);
66

7+
chdir(__DIR__);
8+
79
require '../src/AfriCC/autoload.php';
810

911
use AfriCC\EPP\Frame\Command\Update\Host as UpdateHost;

0 commit comments

Comments
 (0)