使用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.

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