打开一个没有重定向的PHP页面?

3 php curl module whmcs

我在工作中为我们的计费系统编写了一个模块,它的工作非常精彩.不幸的是,API缺少一个我需要立即终止服务的功能,让我只能直接调用URL ...

http://www.website.com/billing/admin/clientsservices.php?userid=69264&id=68405&modop=terminate

由于模块需要继续运行而不重定向到该URL,我如何从我的PHP脚本执行该操作?

Jon*_*s m 7

你可以简单地使用file_get_contents();

<?php
file_get_contents('http://www.website.com/billing/admin/clientsservices.php?userid=69264&id=68405&modop=terminate');
?>
Run Code Online (Sandbox Code Playgroud)

它将被称为.