i am working on local web based system.now i need to install databse(xampp) at one pc and the application at another pc in the same netwoek(html and php code).but how can i connect or configure in both pcs .specially how to onfigure the database connection using php?

When connecting to a database, you need to specify the server host. If it's the same machine, you would specify 'localhost'. However, if it's a different machine, you would specify either the hostname on the network or IP address of the other machine. If both machines are properly configured on the same network, then they should be able to access each other by internal (or external) IP address.

Be a part of the DaniWeb community

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