0
A
回答
0
請檢查鏈接波紋管,它可以提供你正在尋找的答案: https://forums.cpanel.net/threads/add-subdomain-using-api.119609/
0
爲了通過的cPanel API的子域,你可以試試下面的代碼: -
require_once 'xmlapi.php';
$api2args = array(
'domain' => 'subdomain', // name of the subdomain to be created
'rootdomain' => 'example.com', // main domain under which sub
domain needs to be created
'dir' => '/public_html/directory_name', // directory to generate
for this subdomain
'disallowdot' => '1'
);
$result = $xmlapi->api2_query($cpanel['username'], 'SubDomain',
'addsubdomain', $api2args);
相關問題
- 1. 得到錯誤到升級模塊
- 2. Magento得到錯誤,以安裝模塊
- 3. 得到錯誤,「AttributeError錯誤:‘模塊’對象有‘ifelse’無屬性」
- 4. 得到錯誤通過API
- 5. 找不到模塊:錯誤
- 6. 錯誤:找不到模塊「。」
- 7. 得到錯誤「無法找到模塊‘解析服務器’
- 8. 爲什麼「jitsu deploy」得到「錯誤:找不到模塊'browserid-verifier'」?
- 9. 的Django的virtualenv - 錯誤:沒有模塊名爲南
- 10. 在南國
- 11. PowerShell國際模塊
- 12. 試駕南希模塊
- 13. SilverStripe模塊入門指南
- 14. 蟒蛇亞馬遜產品API:找不到模塊錯誤
- 15. httpd.conf中的錯誤。無法找到API模塊結構`php5_module'
- 16. 得到這個錯誤 - 「處理程序」iisnode「在其模塊列表中有一個錯誤的模塊」iisnode「
- 17. Ajax調用總是得到錯誤塊
- 18. 在ejabberd得到錯誤當ODBC MOD添加任何模塊
- 19. 錯誤:模塊版本不匹配。預計11,得到1
- 20. 得到錯誤,同時創造新的模塊
- 21. 結賬後得到'沒有這樣的模塊RealmSwift'錯誤
- 22. 得到錯誤,同時導入新模塊vtigerCRM的6.0.0Beta
- 23. 設置工作表對象模塊變量,得到錯誤
- 24. 我得到的pyhone「無模塊名爲廣告」錯誤
- 25. 得到錯誤:matplotlib.style‘「沒有名爲模塊’,而matplotlib
- 26. 得到「未知ID:insmod的」錯誤初始化模塊在
- 27. 仍然得到一個錯誤「導入錯誤:沒有模塊名爲win32com.client」 LIB
- 28. 南國mod_rewrite的mod_userdir
- 29. 國家預期,得到字符串錯誤
- 30. 收到錯誤「錯誤:$注射器:modulerr模塊錯誤」