views:

540

answers:

7

I am developing an application in php. I need to display a notification message on windows taskbar. So please help me...How to do it using php.

+5  A: 

With PHP, your domain is the web browser. You can display a message in the browser or in a pop up window. You can't connect to the operating system.

Sohnee
php can be a scripting and windowing language too, but we need more info from the poster first.
DGM
-1 this isn't actually the case anymore. I don't like it, but as DGM says php is just a scripting language, it just happens to be used for website more often than not.
PintSizedCat
A: 

http://winbinder.org/

zalew
Kaspersky notice that that url is infected by many trojan.
DaNieL
dunno, comodo didn't raise anything, maybe something js specific, sometimes it happens, maybe not.
zalew
Same here:Content contained "Troj/Badsrc-D" virus. Details: Virus: Troj/Badsrc-D; File: No file name available; Sub File: \Gzip; Vendor
Gregor
+2  A: 

Probably PHPGTK can help you. But your question smells a bit, because as Sohnee mentioned PHP is made for creating web pages or things which are highly connected to the web.

However, it could help us if you provide much more information what you do, why you do it, and so on...

Gregor
A: 

You could change the window title using ajax to display a message in the taskbar. That's as far as you can go using a webapp i think.

Rob1n
A: 

You might want to look for a Growl library. On Widows it would require some additional software. Google turns up:

DGM
A: 

With C# for .NET you can easily write a notifier application which resides in the tray.

I just have written an XML based notifier application which communicates (XML data transfer) with a server that runs php. The IDE comes with a sample notifier application. If you are familiar with c# then go and get it.

It's open source Goto SharpDevelopment IDE

Tom Schaefer
A: 

What you can do, is develop a program that does this in another language, and then call it via system() in PHP.

Note that the notification will only pop up on the server. Since no actual PHP code is run on the client's machine.

Ólafur Waage