我想从git的枢纽实现以下聊天HTML5: https://github.com/ivanph/Chat-HTML5PHP的exec被阻止ISP
我已经上传的一切我的ISP,但我发现,ISP块exec的出于安全原因。
我打电话的文件是:
<?php
/**
* Main Script of phpWebSockets
*
* Run this file in a shell or windows cmd to start the socket server.
* Sorry for calling this daemon but the goal is that this server run
* as daemon in near future.
*
* @author Moritz Wutz <[email protected]>
* @version 0.1
* @package phpWebSockets
*/
ob_implicit_flush(true);
require 'socket.class.php';
require 'socketWebSocket.class.php';
require 'socketWebSocketTrigger.class.php';
$ip = exec ("ifconfig|grep 'inet:'|grep -v '127.0.0.1' |cut -d: -f2 |awk '{ print $1}'");
$WebSocket = new socketWebSocket($ip,8000);
?>
是否有其他办法做到这一点?是否所有的Isp阻止了这个?
我该怎么办?
嗨,伙计 感谢您的答复。 我收到了脚本开发人员的回复。 我已将$ ip更改为我们网站的IP地址。我现在得到以下错误:
--2013-08-13 12:07:01-- http://www.wilsea.com/websockets2/startDaemon.php
Resolving www.wilsea.com... 188.64.188.21
Connecting to www.wilsea.com|188.64.188.21|:80... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2013-08-13 12:07:12 ERROR 500: Internal Server Error.
的开发商表示,这意味着端口(8000)在使用中,所以我尝试80 - 443 - 8080,但得到了同样的错误。
我已经通过电子邮件发送给ISP,询问websockets是否被阻止或者是否需要端口打开。
其他人有这个问题或对这个问题的任何见解?
一般情况下,是的。您应该使用其他类型的托管(例如VPS)。 –
ISP!=主机提供商。同样出于安全原因,他们无法为您提供这样的功能,您将需要一个VPS或专用服务器。 – HamZa
你可以提供'$ ip'作为静态数据 – Matthijs