dougou8552 2018-02-01 01:47
浏览 252
已采纳

使用PHP和C#处理Eventsource [关闭]

I have created a fileWatcher(running as a service) in C# which calls PHP script through URL whenever there is a change in Folder.

I want to load the web page with new data when there is change in file. I have tried doing this using javascript Eventsource by calling PHP and echoing by C# whenever there is change in file but no luck.

Any suggestions how would I tackle this problem.

  • 写回答

1条回答 默认 最新

  • dongshuiga2826 2018-02-01 03:08
    关注

    I have solved this problem by checking file size every minute and responding to event source. Only overhead is checking file every 1 minute.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?