Menu

#1 idCGIRunner : using the declared php.ini

open
nobody
None
5
2007-07-03
2007-07-03
No

Hi,

We're using idRunner library for years.
Thanks for this great component.
Here's a patch about idCGIRunner.
Tested on 98 and XP boxes (+ Indy10), PHP 4 & 5

Best regards,
Pierre.

Index: idCGIRunner.pas

--- idCGIRunner.pas (revision 251)
+++ idCGIRunner.pas (revision 252)
@@ -451,7 +451,14 @@

//Long FileName
ldoc:=extractFilePath(LocalDoc);
- if Pos(' ',LocalDoc) <> 0 then LocalDoc := '"'+LocalDoc + '"';
+// if Pos(' ',LocalDoc) <> 0 then LocalDoc := '""'+LocalDoc + '" -c "'+ FPHPIniPath + '""';
+{*
+ Command-line must include a reference to the PHP.ini path if initialized
+ Furthermore, we don't worry any longer about blanks in path (neither cgi.exe nor php.ini)
+*}
+ LocalDoc := '""' + LocalDoc;
+ if FPHPIniPath <> '' then LocalDoc := LocalDoc + '" -c "' + FPHPIniPath;
+ LocalDoc := LocalDoc + '""';

if Win32Platform = VER_PLATFORM_WIN32_NT then
shell_cmd := 'CMD.EXE /C ' + LocalDoc else

Discussion


Log in to post a comment.