[原创]在Delphi中调用PHP程序 PHP4Delphi 及注意事项

话说PHP4Delphi 这个东西太邪恶了,居然能直接在Delphi调用PHP代码。
官方连接
http://users.telenet.be/ws36637/php4delphi.html

使用中如果出现这种错误
Unknown: Failed opening required ‘-‘ (include_path=’.,c:\php5\pear’) in unknown line 0

需要把你的phpts.dll 升级到 5.3XX 版本,下载的时候要下那个线程安全的版本。

下面有一段英文描述
I had the same problem and I have solved it. Cause: I have on hold version of php5ts.dll
Solution 1: Update the dll to version 5.3XX
Solution 2: find the file named PHP.INC (INC not INI) open it with notepad find
{$DEFINE PHP504}
{$DEFINE PHP510}
{$DEFINE PHP511}
{$DEFINE PHP512}
{$DEFINE PHP520}
{$DEFINE PHP530}
corret to
{$DEFINE PHP504}
{$DEFINE PHP510}
{$DEFINE PHP511}
{$DEFINE PHP512}
{$DEFINE PHP520}

留下评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注

34 − = 27