We do not throw water on a pan fire because of oil and water do not mix together. Oil will float on the surface of water and will leave the pan before the water. The fire is not burning the water. It's using the oil for combustion.
As GB Plan said just below- it will spread the fire. Water sinking into the oil is flashed into steam, and throws burning oil out of the pan. Cover the burning pan with a lid, or sprinkle baking SODA (not baking powder) onto the burning pan.
Throw water onto over-hot chip pan.
DO NOT throw water on the pan. Quickly get a lid onto the pan; that should extinguish the flames. Turn the burner off and wait for the pan to cool.
Oil and water do not mix. Therefore if a fire starts, throw flour or baking soda over it to stop the fire. If you add water, the fire will most likely spread out since water will spread the fire out more.
DO NOT THROW WATER on it. This will cause an explosion. Turn off whatever is heating it if you can. Dampen (not saturated) a towel and cover the pan with it, this will stop the flames. Get everyone out of the house and call the emergency service.
By putting the water in a pan/pot and then hold the pan/pot over the fire until hot :)
It is sometimes possible to tightly close off the fire. For example, if the material in a pan on a stove ignites, the very best response is to slip the lid onto the pan, quickly starving the fire of oxygen. It would not be a good idea to throw anything like liquid into the pan. You can also remove oxygen from a fire by putting something on the fuel that keeps oxygen away. This is what happens when you use a Halon gas fire extinguishing system. When you put water on a fire, one of the two things water does is to prevent oxygen from getting to the fuel.
If there is a chip pan which is on fire, the correct way to deal with this is to wet a tea towel, ring it out and then lay it over the top of the burning pan (this excludes the air from the fire) then turn off the heat under the pan and leave it to cool. You must not throw water into the pan because the fat in the pan is hotter than the boiling point of water and this causes the water to boil and explode, throwing burning fat all over you and the room. Water over a chip pan turns a small, controllable fire into an uncontrollable inferno.
the foaming which is producing a gas
They throw wood in a fire and let it burn, and they take the charcole and put in under a pan, and then they take the pan and cook the food threw the charcole.
Do NOT attempt to put water on this type of fire! Also, DO NOT open the pan, as it will add more oxygen to the fire and make it burn even harder. Simply throw BAKING SODA on top of the fire, and it will die down. Be generous. Edit: Chances are, if the oil is burning, the pan is open, so you will need to put a lid on the pan that will sit tightly and seal off any oxygen from entering that pan. As a precaution, I would suggest having a flame extinguisher or a fire blanket in the kitchen.
We must know that electrical fires and fires fueled by burning liquids should not be fought with water. Some burning metals should not be fought with water, too.
The best way is to use sand or water.