在php中,假設在test.php
中有一個名爲'test_class'的類,有兩種方法:method_1
和method_2
。使用exec調用/調用php類中的方法
這是我test.php
文件:
class test_class
{
function method_1
{ ....... }
function method_2
{ ....... }
}
現在,使用「執行」命令從其他PHP文件,我想只運行在爲test_class的method_1。
我想知道這是如何實現的?
的可能重複http://stackoverflow.com/search?q=run + php +代碼+異步 – Gordon
http://stackoverflow.com/search?q=run+php+code+in+background可能的副本 – Gordon