/trunk/FastPHPUtils.pas |
---|
12,6 → 12,7 |
function GetPHPExe: string; |
function RunPHPScript(APHPFileName: string): string; |
function ParseCHM(chmFile: string): boolean; |
function IsValidPHPExe(const exeFile: string): boolean; |
implementation |
185,6 → 186,15 |
end; |
end; |
function IsValidPHPExe(const exeFile: string): boolean; |
var |
cont: string; |
begin |
cont := LoadFileToStr(exeFile); |
result := (Pos('php://stdout', cont) >= 0) or |
(Pos('PHP_SELF', cont) >= 0); |
end; |
initialization |
finalization |
if Assigned(__FastPHPConfig) then |