1n9i9c7om / ClashOfClans-API-PHP

PHP wrapper for SuperCell's official ClashOfClans API.
MIT License
34 stars 13 forks source link

Found 2 Error on try #15

Closed cikal closed 7 years ago

cikal commented 7 years ago

hi nico, thanks for these API. but after run example as include here, i get 2 message error

  1. Warning: require_once(./ClashAPI/API.class.php): failed to open stream: No such file or directory in /home/user/public_html/ClashOfClans-API-PHP-master/Examples/clanInformation.php on line 2
  2. Fatal error: require_once(): Failed opening required './ClashAPI/API.class.php' (include_path='.:/opt/php-5.5/pear') in /home/user/public_html/ClashOfClans-API-PHP-master/Examples/clanInformation.php on line 2

After i check the code, you miss one (dot sign)

Original Code -> Result Error :

<?php
require_once "./ClashAPI/API.class.php";

Edit Code

<?php
require_once "../ClashAPI/API.class.php";

maybe you want take a minute for commit update :+1: