fixed web hook PHP code