infobip / oneapi-php

oneapi-php
https://developer.infobip.com/api
Apache License 2.0
12 stars 12 forks source link

Problem with referencing paths #1

Closed lblazecki closed 10 years ago

lblazecki commented 12 years ago

When trying to initialize parseco oneapi-php outside that directory it gets broken because of bad paths. I have a file like this :

<?php require_once 'parseco/examples.php'; ?>

where examples.php file is in parseco library and looks like this :

<?php define('USERNAME', 'some user'); define('PASSWORD', 'some pass'); define('SENDER_ADDRESS', 'some numb'); define('DESTINATION_ADDRESS', 'some numb'); include 'examples/send_message.php'; ?>

Error is then :

Warning: require_once(oneapi/client.php) [function.require-once]: failed to open stream: No such file or directory in /home/obrtbr5/public_html/parseco-test/parseco/examples/send_message.php on line 10

Fatal error: require_once() [function.require]: Failed opening required 'oneapi/client.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/obrtbr5/public_html/parseco-test/parseco/examples/send_message.php on line 10