Lets just say I'm in /root/, and I want to run the file in /usr/local/bin/blah
The program blah needs the file /usr/local/conf/data, so it uses:
and it fails because it can't find that file. But if the user is in /usr/local/bin and executes blah, it works.Code:fopen("../../conf/data");
What is the best approach to making it so the file uses relative links from the programs folder, and not the folder the user is in?
Thank yas :)