Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有一种方法可以在 PHP 中创建一个不等待被调用函数返回的 SOAP 调用?
我正在从我的系统中调用一个 Magento Api 函数来在目录中创建一个新产品。这可能需要很长时间,我不希望我的最终用户等到它完成。
我只会打一个普通电话,但不要阻止用户在通话期间做其他事情。这样你就可以吃蛋糕(调用)并吃掉它(得到结果)。
最常见的方法是进行AJAX调用:您通过脚本向PHP文件发出请求,但界面将是响应式/可用的。如果用户没有从您发出请求的页面浏览,您甚至可以提供响应。
AJAX
PHP