I have two folders Provider and Library in the same directory. Provider includes two php files ActiveRequests.php and PendingRequests.php. Library contains another folder Multilingual which includes Pagefactory.php and languageSession.php
- Provider
- ActiveRequests.php
- PendingRequests.php
- Library
- Multilingual
- Pagefactory.php
- languageSession.php
I'm including PageFactory.php in ActiveRequests.php like
include_once __DIR__ . '/../library/Multilingual/PageFactory.php'
and it is working fine.
But when I'm trying to include PageFactory.php in PendingRequests.php in the same way like
include_once __DIR__ . '/../library/Multilingual/PageFactory.php'
it is not working.
when I tried to include the languageSession.php in Pendingrequests.php like
include_once __DIR__ . '/../library/Multilingual/languageSession.php'
it is working fine.
Can any one help me? What could be the problem with the PageFactory.php path?
I've also tried with $_SERVER["DOCUMENT_ROOT"] but it did not work.