i want list of event in magento.I want a script, whenever it will run get list of events,which is belong to magento...
Via the commandline you can run
grep -RHin 'dispatchEvent' . from the
app/code directory. This will output a list of all locations where an event is triggered.
As you indicated you're working on Windows and you want to do this using a php script. In that case check out this thread on Stackoverflow on recursive file search. You will need to read each file you find search for
dispatchEvent. This script will be very heavy to run on the server and should probably not be used in any production environment.