Subversion Repositories fastphp

Compare Revisions

Regard whitespace Rev 41 → Rev 42

/trunk/BrowserMain.pas
228,8 → 228,8
myUrl2 := StringReplace(myUrl2, ' ', '+', []);
myUrl2 := 'http://wa.viathinksoft.de/' + myUrl2;
 
showmessage(myUrl2);
WebBrowser1.LoadHTML(GetDosOutput('"'+GetPHPExe+'" "'+myURL+'" "'+ArgGet+'" "'+ArgPost+'" "'+ArgHeader+'"', ExtractFileDir(Application.ExeName)), myUrl2);
// showmessage(myUrl2);
WebBrowser1.LoadHTML(GetDosOutput('"'+GetPHPExe+'" -f "'+myURL+'" -- "'+ArgGet+'" "'+ArgPost+'" "'+ArgHeader+'"', ExtractFileDir(Application.ExeName)), myUrl2);
end;
Cancel := true;
end;
/trunk/FastPHPUtils.pas
73,7 → 73,7
if lint then
result := GetDosOutput('"'+phpExe+'" -l "'+APHPFileName+'"', ExtractFileDir(ParamStr(0)))
else
result := GetDosOutput('"'+phpExe+'" "'+APHPFileName+'"', ExtractFileDir(ParamStr(0)));
result := GetDosOutput('"'+phpExe+'" -f "'+APHPFileName+'"', ExtractFileDir(ParamStr(0)));
end;
 
function ParseCHM(const chmFile: TFileName): boolean;
/trunk/RunPHP.pas
51,7 → 51,6
WorkDir: string;
Handle: Boolean;
testString: AnsiString;
CommandLine: string;
Output, OutputLastCache: string;
const
SIGNAL_END_OF_TRANSMISSION = #1#2#3#4#5#6#7#8;
65,8 → 64,6
if not FileExists(Self.PhpExe) then exit;
if not FileExists(Self.PhpFile) then exit;
 
CommandLine := '"'+Self.PhpExe+'" "'+Self.PhpFile+'"';
 
Output := '';
OutputLastCache := '';
with SA do begin
88,7 → 85,7
hStdError := StdOutPipeWrite;
end;
 
Handle := CreateProcess(nil, PChar('cmd.exe /C "' + CommandLine + '"'),
Handle := CreateProcess(nil, PChar('"'+Self.PhpExe+'" -f "'+Self.PhpFile+'"'),
nil, nil, True, 0, nil, PChar(WorkDir), SI, PI);
CloseHandle(StdOutPipeWrite);
 
/trunk/codeexplorer.bmp
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/codeexplorer.php
291,7 → 291,9
if (trim($f) == chr(1).chr(2).chr(3).chr(4).chr(5).chr(6).chr(7).chr(8)) break;
 
// Signal to terminate the code explorer
if (trim($f) == chr(8).chr(7).chr(6).chr(5).chr(4).chr(3).chr(2).chr(1)) die();
if (trim($f) == chr(8).chr(7).chr(6).chr(5).chr(4).chr(3).chr(2).chr(1)) {
die("\n".chr(8).chr(7).chr(6).chr(5).chr(4).chr(3).chr(2).chr(1)."\n");
}
 
$lines[] = $f;
}
311,19 → 313,19
}
 
public static function outputIncreaseLevel() {
return 'I'."\n";
return "I\n";
}
 
public static function outputDecreaseLevel() {
return 'D'."\n";
return "D\n";
}
 
public static function outputExit() {
return 'X'."\n";
return "X\n";
}
 
public static function signalOutputEnd() {
return chr(1).chr(2).chr(3).chr(4).chr(5).chr(6).chr(7).chr(8);
return "\n".chr(1).chr(2).chr(3).chr(4).chr(5).chr(6).chr(7).chr(8)."\n";
}
 
public static function outputHeader() {