概念证明问题 [英] Proof of concept questions

查看:64
本文介绍了概念证明问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

概念证明:目前我有一个网络托管服务,它支持php。


可以在php中完成以下操作吗?解释或示例将是

赞赏。


创建2个应用程序,app-1和app-2


app-1循环连续。每1秒钟,应用程序将

天的时间写入文件。


app-2读取文件并将其显示在网页上。


我想从网页上启动app-1,然后关闭网页。 App-1

继续记录文件中的时间。


稍后某个时间点...运行app-2。它打开文件并显示

内容。


现在停止app-1。


应用程序是很简单,但是在我开始开发应用程序之前,他们回答了我需要了解的一些基本问题。我认为这可能会更容易,如果我有一个假定的服务器而不是网页

仅托管?


TIA

Proof of concept: Currently I have a web hosting service and it does
support php.

Can the following be done in php? Explanations or examples would be
appreciated.

Create 2 applications, app-1 and app-2

app-1 loops continuosly. Every 1 second the application writes the time of
day to a file.

app-2 reads the file and displays it on a webpage.

I want to start app-1 from a webpage, then close the webpage. App-1
continues to log the time of day to the file.

At some later point in time...run app-2. It opens the file and displays
the contents.

Now stop app-1.

The applications are simple, but they answer a couple of basic questions I
need to know about php before I jump into developing an application. I
assume this might be easier if I have a decicated server instead of web
hosting only?

TIA

推荐答案

nop90写道:
nop90 wrote:

可以在php中完成以下操作吗?解释或示例将受到赞赏。

创建2个应用程序,app-1和app-2

app-1循环连续。每1秒钟,应用程序会将
天的时间写入文件。


是的 - 这是PHP可行的,尽管您的ISP可能没有设置

机器允许这个(PHP通常用于生成网页 - 每个网页启动
新流程/线程) - 长时间运行的流程

在这种情况下是一件坏事,网络服务器和PHP都有机制

来防止它们。

应用程序很简单,

Can the following be done in php? Explanations or examples would be
appreciated.

Create 2 applications, app-1 and app-2

app-1 loops continuosly. Every 1 second the application writes the time of
day to a file.

Yes - this is posible with PHP, although you ISP may not have setup the
machine to allow this (PHP is typically used for generating web pages - a
new process/thread is started for each web page) - long running processes
in this context are a bad thing and both webservers and PHP have mechanisms
to prevent them.
The applications are simple,



我不会上升到那个。


C.


I''m so not going to rise to that one.

C.


刻在神秘的符文上生活摇滚,comp.lang.php的
nop90的最后一句话简单说明:
Carved in mystic runes upon the very living rock, the last words of
nop90 of comp.lang.php make plain:
我想从网页启动app-1,然后关闭网页。
I want to start app-1 from a webpage, then close the webpage.




即使你的脚本没有超时(它很可能会,你的服务器设置取决于
) ,关闭网页将结束它的运行。


你最好从一个cron工作中运行它。


-

Alan Little

Phorm PHP表格处理器
http:// www .phorm.com /


Alan Little< al ** @ nospam-phorm.com>写在

新闻:Xn ************************** @ 216.196.97.131:
Alan Little <al**@n-o-s-p-a-m-phorm.com> wrote in
news:Xn**************************@216.196.97.131:
你最好从一个cron作业中运行它。
You''re better off running it from a cron job.




可以创建一个cron作业来每秒运行一次吗?当我查看我的网页

主机关于如何创建一个cron作业的信息时,我似乎记得1分钟是最小分辨率的





Can a cron job be created to run every second? When I looked at my web
host''s info on how to create a cron job, I seem to remember 1 minute was
the smallest resolution.


这篇关于概念证明问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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