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

Link to comment
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.