简体   繁体   中英

System tray notification via PHP

I would like to create a simple notification icon that would display a number in the users system tray.

The application only needs to allow the input of an API key that it would use to fetch information from the server. So, for example:

http://www.example.com/api.php?key=dfg45tgyy67h

The PHP file will return two values, a number, and a URL. The number should appear in the system tray, and clicking on it should take you to the URL. The application should update the information at a specified interval, which can be hard-coded into the application.

I really have no idea how to do this, but can pick up things like this pretty quickly. So I would like to know some ways to accomplish this, or what the easiest method to use would be.

EDIT When I said PHP what I meant was that on the server it would be a PHP file serving up the information to the application. I didn't plan on creating the client application in PHP.

You can't do this with PHP as it has no way of interacting with a user's computer and and that includes the system tray. You'll need to write something that will run on their computer and then polls your PHP script for this information.

将跨平台语言和窗口小部件工具包与浏览器启动和系统任务栏功能一起使用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM