半连续运行的Perl脚本可以调用javascript返回协议吗? [英] Can a semi-continuously running Perl script call a javascript return protocol?

查看:165
本文介绍了半连续运行的Perl脚本可以调用javascript返回协议吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的网站构建一个聊天室,并试图找到一种Perl脚本的方法,只要有人仍然登录,该方法就可以连续运行,以便在有人说出内容时调用Javascript返回协议.我不完全确定出于安全原因这是可能的.

I am building a chat room for my website and am trying to figure out a way for a Perl script, that will run continuously as long as people are still logged in, to call a Javascript return protocol when someone says something. I''m not entirely sure this is possible for security reasons. Any insight into this would be helpful.

推荐答案

您是否在谈论语音聊天?这可能是一项艰巨的任务,而且托管工作将变得更加艰辛(大量流量).

要进行文字聊天,请在此处 http://sourceforge.net/projects/ajaxperlchat/ [
Are you talking about a voice chat? This may be a hard task and the hosting well be even harder (a lot of traffic).

For a text chat see this example here http://sourceforge.net/projects/ajaxperlchat/[^] using perl and ajax. But be aware, most hosting companies limit the execution time and memory (voice chat) of scripts so your solution may not work on managed webspace.
Hans.


这篇关于半连续运行的Perl脚本可以调用javascript返回协议吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆