Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: How to get Apache Module Path in Linux - Tokyo


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 0 Threads: [ Previous | Next ]
Md. Shariful Al...

Posts: 70
Registered: 9/9/01
How to get Apache Module Path in Linux - Tokyo  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 15, 2017 1:45 PM
I need to get Apache Module path in Linux. In Windows there is a API GetModuleFileName along with following functions:
function GetModuleName: string;
var
szFileName: array[0..MAX_PATH] of Char;
begin
FillChar(szFileName, SizeOf(szFileName), #0);
GetModuleFileName(hInstance, szFileName, MAX_PATH);
Result := szFileName;
end;

function GetModulePath: string;
begin
Result := ExtractFilePath(GetModuleName) + PathDelim;
end;

How can I get path in Linux?
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02