I don't think you mean dynamic. I think you mean that it's adding stuff after the .php that doesn't belong.
:: racking brains ::
It's 1 AM for me. You need either some ruthless redirecting, or there's something wrong with your AcceptPathInfo settings. (Oops, er, I do tend to assume Apache. Someone will come along to translate as needed.)