douqin7086 2016-02-27 13:38
浏览 78

用于从php调用swi-prolog的命令

I am working with prolog and php. I am using php, to call prolog. I am using swi-prolog Version 7.1.17 and XAMPP 1.7.7 [PHP: 5.3.8].
My command :

$cmd ='swipl -q -f C:\Users\MyComp\Desktop\test.pl -g test,halt';

Here C:\Users\MyComp\Desktop\test.pl is prolog file directory. It is worked properly. but Now I update the XAMPP version(above 1.7.7) then it is not work. but the command it is work properly in cmd in windows.How can i solve this kind of problem? Any command will using All XAMPP version for call prolog from php.

  • 写回答

1条回答 默认 最新

  • douxia5179 2016-03-04 17:31
    关注

    You Try with
    nice -n15 /software/bin/pl -f /home/popx/cgi-bin/test.pl -g test,halt

    This may be work with your specification.
    See the reference

    评论

报告相同问题?

悬赏问题

  • ¥15 ikuai客户端多拨vpn,重启总是有个别重拨不上
  • ¥20 关于#anlogic#sdram#的问题,如何解决?(关键词-performance)
  • ¥15 相敏解调 matlab
  • ¥15 求lingo代码和思路
  • ¥15 公交车和无人机协同运输
  • ¥15 stm32代码移植没反应
  • ¥15 matlab基于pde算法图像修复,为什么只能对示例图像有效
  • ¥100 连续两帧图像高速减法
  • ¥15 如何绘制动力学系统的相图
  • ¥15 对接wps接口实现获取元数据