要在 PHP 內呼叫 CGI script 可以用以下方法實現:
1.
<?php
$result = exec("testing.cgi < $myinput 2>&1");
print($result);
?>
2.
<?php
echo file_get_contents("http://yourdomain.com/cgi-bin/testing.cgi");
?>
關於 PHP, Linux, Open Source 及個人生活記載的網誌。
要在 PHP 內呼叫 CGI script 可以用以下方法實現:
1.
<?php
$result = exec("testing.cgi < $myinput 2>&1");
print($result);
?>
2.
<?php
echo file_get_contents("http://yourdomain.com/cgi-bin/testing.cgi");
?>
RSS feed for comments on this post. | TrackBack URI