How to find the path of a specific file?
Posted: Wed Jun 11, 2008 8:17 pm
Good Day to all,
Ahm, does anyone here know how can i make a function that get the filepath of a specific file?
I want to create a function like this:
- getFilePath('A_file_with_an_unknown_path.inc');
then the function will return the path of the file with an unknown path/directory.
Is this possible? If not, can anyone tell me how can I be able to include a file with an unknown filepath/directory?
- require_once('???/???/???/A_file_with_an_unknown_path.inc');
Please help.
Thank you in advance.
Ahm, does anyone here know how can i make a function that get the filepath of a specific file?
I want to create a function like this:
- getFilePath('A_file_with_an_unknown_path.inc');
then the function will return the path of the file with an unknown path/directory.
Is this possible? If not, can anyone tell me how can I be able to include a file with an unknown filepath/directory?
- require_once('???/???/???/A_file_with_an_unknown_path.inc');
Please help.
Thank you in advance.