Jump to content

Failed opening '' for inclusion (include_path='.;C:\xampp\php\pear\')


omarshehab

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.