Welcome to WebmasterWorld Guest from 18.104.22.168
I Have a php file name ss.php and it is included on every page of my Website, and on that file is included a file name Connections/Rac.php
so my code looks like
I cannot Make it ../../rac/Connections/Rac.php because this page is included in all my web pages which are also in sub folder and so on, So sometimes it says Failed to open stream, because of Bad path, and when i uploaded this site on Netfrims Hosting, It says Internal Server 500 error and when i contacted them they said if you are using PHP Script to acccess file outside domain then you should give some timeout thing, and probably the prob is timeout, When i uploaded the site, i changed the localhost to my domain name
My Questions is, that is there any other Good way to solve this prob,?
ini_set( 'include_path', ini_get('include_path') . DIRECTORY_SEPARATOR . '/home/myuser/libs/rac/' );