How can I control an external php (with external database) page with WordPress?

Assuming both are parts of same site you can load WP engine in that page and use WordPress functionality in it, see Integrating WordPress with Your Website.

But it would probably make more sense to convert that page into WP page template or something. Hard to say without knowing specifics.