include_once problem
Posted: Tue Oct 03, 2006 4:29 am
I have downloaded an example script from a company that I use. I have installed openssl and curl as specified but when i run their example scripts I get the following errors:
Warning: include_once(/EsendexAccountService.php) [function.include-once]: failed to open stream: No such file or directory in C:\Program Files\Apache Group\Apache2\htdocs\Esendex\Example Files\EsendexAccountServiceExample.php on line 3
Warning: include_once() [function.include]: Failed opening '/EsendexAccountService.php' for inclusion (include_path='.;C:\php5\pear') in C:\Program Files\Apache Group\Apache2\htdocs\Esendex\Example Files\EsendexAccountServiceExample.php on line 3
Fatal error: Class 'EsendexAccountService' not found in C:\Program Files\Apache Group\Apache2\htdocs\Esendex\Example Files\EsendexAccountServiceExample.php on line 11
I know the file is definatley there.
I havent had a great deal of experience with include_once or with the $accountService commands so I am probably doing something stupid.
Here is the script i am using, any help would be great, thanks.
Warning: include_once(/EsendexAccountService.php) [function.include-once]: failed to open stream: No such file or directory in C:\Program Files\Apache Group\Apache2\htdocs\Esendex\Example Files\EsendexAccountServiceExample.php on line 3
Warning: include_once() [function.include]: Failed opening '/EsendexAccountService.php' for inclusion (include_path='.;C:\php5\pear') in C:\Program Files\Apache Group\Apache2\htdocs\Esendex\Example Files\EsendexAccountServiceExample.php on line 3
Fatal error: Class 'EsendexAccountService' not found in C:\Program Files\Apache Group\Apache2\htdocs\Esendex\Example Files\EsendexAccountServiceExample.php on line 11
I know the file is definatley there.
I havent had a great deal of experience with include_once or with the $accountService commands so I am probably doing something stupid.
Here is the script i am using, any help would be great, thanks.
Code: Select all
<?php
include_once ('/EsendexAccountService.php');
//Test Variables:
$username = 'someusername'; //Your Username (normally an email address)
$password = 'password'; //Your Password
$account = '1234567'; //Your Account Reference (either your virtual mobile number, or EX account number)
//instantiate the service with login credentials
$accountService = new EsendexAccountService($username, $password, $account);
//get the message limit for the account
print_r ( $accountService->GetMessageLimit() );
?>