简体   繁体   English

宁静的PHP客户端无法在服务器上运行,但在localhost上可以正常工作

[英]Restful php client not working on server but works fine in localhost

i need build a restful client on php. 我需要在php上构建一个Restful客户端。 i have used pest class which is available on github. 我使用了可以在github上找到的有害生物类。 my client is working fine on localhost where the web service is hosted on a remote server. 我的客户端在将Web服务托管在远程服务器上的localhost上运行良好。 but when i uploaded the code to another server it returns timeout. 但是,当我将代码上传到另一台服务器时,它将返回超时。 I havent used any extension php (dll files). 我还没有使用任何扩展名php(dll文件)。 what can be the issue. 可能是什么问题。 please help me. 请帮我。 thanx. 谢谢。

How does it execute it's web requests? 它如何执行网络请求? (Sockets, file_get_contents, curl?) I'd imagine it's an issue of not allowing outbound requests. (套接字,file_get_contents,curl?)我想这是不允许出站请求的问题。 In that case, contact the server admin and ask them. 在这种情况下,请与服务器管理员联系并询问他们。 Try using a demo curl script to see if you can contact google and pull down its index page, that will tell you if you are allowed out bound requests. 尝试使用演示curl脚本,看看是否可以联系google并下拉其索引页面,该页面将告诉您是否允许绑定请求。 I had this issue before, where my server was denied outbound requests and just had no results. 我之前遇到过这个问题,我的服务器被拒绝出站请求,但是没有结果。 I would think the server-admin would be able to help here. 我认为服务器管理员可以在这里提供帮助。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 php 代码在 xampp 本地主机上运行良好,但在实时服务器上运行不正常 - php code works fine on xampp localhost but not working on live server CodeIgniter邮件无法在服务器上运行,但可以在本地主机上正常工作 - CodeIgniter mail not working on server but works fine localhost PHP:Readfile() 在 localhost 但在服务器上工作正常 - PHP: Readfile() works fine at localhost but not at server CakeSession :: write()在远程服务器上不起作用,但在localhost上工作正常 - CakeSession::write() Not working on remote server, but works fine on localhost PHP网站可以在localhost上正常运行,但是当我上传到服务器时却无法正常运行 - PHP Website works fine on localhost, but not when I upload to server Php脚本不能在Wamp Localhost上工作,但在远程服务器上工作正常 - Php Script not working on Wamp Localhost but working fine on remote server PHP站点可以在本地主机上正常运行,但不能在实时服务器上运行 - PHP site running fine on localhost but not working on a live server Cake PHP网站在localhost上正常运行,但在服务器上时出错 - Cake PHP site working fine on localhost but error when on server PHP Excel 导入到 MYSQL 数据库在本地主机上工作正常,但在在线服务器上不能正常工作 - PHP Excel import to MYSQL database working fine on localhost but not on online server Phpmailer 在 localhost 中工作正常但不在服务器中 - Phpmailer working fine in localhost But not in server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM