i have a simple question which is that if MySQL database and PHP are installed on the same system do i require a secure connection or can i just place the connection code in a php file and call it as needed.

Thanks

Studio

I normally put an include file (containing the connection info) into a separate directory, which is password protected, so from the outside it's not easy to access. Furthermore, only create localhost users on mysql. Your firewall should handle the rest.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.