How will my client use the website while it is locally hosted on my pc? - Hack The Tech - Latest News related to Computer and Technology

Hack The Tech - Latest News related to Computer and Technology

Get Daily Latest News related to Computer and Technology and hack the world.

Friday, March 25, 2022

How will my client use the website while it is locally hosted on my pc?

I am making a simple website that only consists of a login and register page.. now my question is the back-end side of things as phpmadmin or mysql database.. how the website going to function on the client side while it is locally hosted on my PC? how can i do this task?

now i am done with front-end side of things can i use something other than php my admin or mysql so it can function from any computer?

here is the template i tried using...

    <?php
/* Database credentials. Assuming you are running MySQL
server with default setting (user 'root' with no password) */
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'root');
define('DB_PASSWORD', '');
define('DB_NAME', 'demo');
 
/* Attempt to connect to MySQL database */
$link = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME);
 
// Check connection
if($link === false){
    die("ERROR: Could not connect. " . mysqli_connect_error());
}
?>

if anyone has any recommendations/solutions please let me know. Maybe there are other solutions other than (mysql).



source https://stackoverflow.com/questions/71607003/how-will-my-client-use-the-website-while-it-is-locally-hosted-on-my-pc

No comments:

Post a Comment