omarshehab Posted April 15, 2008 Share Posted April 15, 2008 Here is my PHP code. --------START <?php include_once realpath(dirname(__FILE__)."../types/SMSEventOutput.php"); include_once('../types/SMSEventInput.php'); include_once('../types/SMSEventVO.php'); include_once('../datamodel/DataModel001.php'); include_once('SMSEventProcessHelper.php'); class SMSEventProcessor{ // Instance variables // The SMS Event input to work with private $smsEventInput; function __construct(SMSEventInput $smsEventInput){ $this->smsEventInput = $smsEventInput; } function processSMSEvent(){ $smsEventProcessHelper = new SMSEventProcessHelper($this->smsEventInput); $smsEventOutput = $smsEventProcessHelper->executeHelper(); } } ?> ---------END And here is the error: =============== Warning: include_once() [function.include]: Failed opening '' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\onushondhan\core\SMSEventProcessor.php on line 2 Warning: include_once(../types/SMSEventInput.php) [function.include-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\onushondhan\core\SMSEventProcessor.php on line 3 Warning: include_once() [function.include]: Failed opening '../types/SMSEventInput.php' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\onushondhan\core\SMSEventProcessor.php on line 3 Warning: include_once(../types/SMSEventVO.php) [function.include-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\onushondhan\core\SMSEventProcessor.php on line 4 Warning: include_once() [function.include]: Failed opening '../types/SMSEventVO.php' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\onushondhan\core\SMSEventProcessor.php on line 4 Warning: include_once(../datamodel/DataModel001.php) [function.include-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\onushondhan\core\SMSEventProcessor.php on line 5 Warning: include_once() [function.include]: Failed opening '../datamodel/DataModel001.php' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\onushondhan\core\SMSEventProcessor.php on line 5 Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE in C:\xampp\htdocs\onushondhan\core\SMSEventProcessHelper.php on line 11 ==================================================== Thanks in advance for your help on these issue. -- Shehab Link to comment https://forums.phpfreaks.com/topic/101247-failed-opening-for-inclusion-include_pathcxamppphppear/ Share on other sites More sharing options...
ohdang888 Posted April 15, 2008 Share Posted April 15, 2008 i don't see the point of include once. i just use include() Link to comment https://forums.phpfreaks.com/topic/101247-failed-opening-for-inclusion-include_pathcxamppphppear/#findComment-517936 Share on other sites More sharing options...
omarshehab Posted April 16, 2008 Author Share Posted April 16, 2008 I have replaced the following line include_once realpath(dirname(__FILE__)."../types/SMSEventOutput.php"); with include realpath(dirname(__FILE__)."../types/SMSEventOutput.php"); Now the error is again: Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\onushondhan\core\SMSEventProcessor.php on line 2 Warning: include_once(../types/SMSEventInput.php) [function.include-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\onushondhan\core\SMSEventProcessor.php on line 3 Warning: include_once() [function.include]: Failed opening '../types/SMSEventInput.php' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\onushondhan\core\SMSEventProcessor.php on line 3 Warning: include_once(../types/SMSEventVO.php) [function.include-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\onushondhan\core\SMSEventProcessor.php on line 4 Warning: include_once() [function.include]: Failed opening '../types/SMSEventVO.php' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\onushondhan\core\SMSEventProcessor.php on line 4 Warning: include_once(../datamodel/DataModel001.php) [function.include-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\onushondhan\core\SMSEventProcessor.php on line 5 Warning: include_once() [function.include]: Failed opening '../datamodel/DataModel001.php' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\onushondhan\core\SMSEventProcessor.php on line 5 Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE in C:\xampp\htdocs\onushondhan\core\SMSEventProcessHelper.php on line 11 -- Shehab Link to comment https://forums.phpfreaks.com/topic/101247-failed-opening-for-inclusion-include_pathcxamppphppear/#findComment-518660 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.