dongzhimeng2464 2010-03-19 04:56
浏览 44
已采纳

PHP中的Perl脚本

I have a perl script, which takes a query string parameter, connects to a database and displays data.

I'd like to include that script in a PHP file like so:

include('perlscript.pl?item=302');

Such that the perl script's response is displayed on the PHP/HTML page.

How can I do this?

  • 写回答

2条回答 默认 最新

  • drl9940 2010-03-19 04:58
    关注

    With backticks?

    echo `/path/to/perl perlscript.pl item=302`
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?