2014-12-24 29 views

回答

0

您可以使用exec php函數。

http://php.net/manual/en/function.exec.php

在這種情況下,你的鏈接的目標將是一個簡單的PHP腳本:

//simpleScript.php 

<?php 
    exec("/path/to/your/perl/script.pl"); 

    // + error and output handling. It depends of your script 
    // + other actions, return, redirect ... 

而在你的HTML:

<a href="path/to/your/php/simpleScript.php">Run now</a> 
+0

謝謝。你能不能給我例如如何使用錨標記和執行功能? –

+0

我更新了我的答案 – ceadreak

+0

非常感謝。儘管exec函數無法正常工作,但我已經正確編寫了代碼。 –