Jump to content

relative path for file_exists


kishan

Recommended Posts

Hi all

i have a separate module in my app like module1

i want to have the relative path in all the files in that module

for ex libs/Atmail/Config.php was located under C:\xampp\htdocs\app\module1\submodule1\libs/Atmail/Config.php

 

but i want to use some thing like file_exists('libs/Atmail/Config.php')

 

so iam giving some thing like $path='C:\xampp\htdocs\app\module1\submodule1';

 

set_include_path(get_include_path() . PATH_SEPARATOR . $path);

 

will it work im not getting the expected result...

 

Please help

 

Link to comment
https://forums.phpfreaks.com/topic/128179-relative-path-for-file_exists/
Share on other sites

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.