Subversion Repositories fastphp

Compare Revisions

Regard whitespace Rev 32 → Rev 33

/trunk/FastPHPUtils.pas
10,7 → 10,7
 
function FastPHPConfig: TMemIniFile;
function GetPHPExe: string;
function RunPHPScript(APHPFileName: string): string;
function RunPHPScript(APHPFileName: string; lint: boolean=false): string;
function ParseCHM(const chmFile: TFileName): boolean;
function IsValidPHPExe(const exeFile: TFileName): boolean;
 
64,12 → 64,15
end;
end;
 
function RunPHPScript(APHPFileName: string): string;
function RunPHPScript(APHPFileName: string; lint: boolean=false): string;
var
phpExe: string;
begin
phpExe := GetPHPExe;
if phpExe = '' then Abort;
if lint then
result := GetDosOutput('"'+phpExe+'" -l "'+APHPFileName+'"', ExtractFileDir(ParamStr(0)))
else
result := GetDosOutput('"'+phpExe+'" "'+APHPFileName+'"', ExtractFileDir(ParamStr(0)));
end;