<?php echo "<h1>Hello from Windows 10!</h1>"; echo "<p>Today is " . date("Y-m-d") . "</p>"; phpinfo(); ?>
By default, XAMPP is configured to be as open as possible. This is convenient for development, but it also means that if your Windows 10 PC is connected to a network (at home, at work, or at a coffee shop), other computers on the same network might be able to access your local server. To protect your work:
Open the file in a text editor (like Notepad, VS Code, or Sublime Text) and insert the following code: welcome to xampp for windows 10
Choose your language, click through the final prompts, and allow the installer to extract the files. Once complete, check the box that says "Do you want to start the Control Panel now?" and click . Navigating the XAMPP Control Panel
Navigate to the XAMPP directory on your computer: C:\xampp\htdocs\ . The htdocs folder is the public root directory where all your local websites must live. Create a new folder inside htdocs and name it my_project . Inside my_project , create a file named index.php . This is convenient for development, but it also
Require all granted
That simple message——represents a fully functional LAMP/WAMP stack running on your local machine. It is the starting line for: Navigating the XAMPP Control Panel Navigate to the
Find the line that says ServerName localhost:80 and change it to ServerName localhost:8080 . Save and close the file. Next, click again and select httpd-ssl.conf . Find the line Listen 443 and change it to Listen 4433 . Save and close the file.
<?php echo "<h1>Hello from Windows 10!</h1>"; echo "<p>Today is " . date("Y-m-d") . "</p>"; phpinfo(); ?>
By default, XAMPP is configured to be as open as possible. This is convenient for development, but it also means that if your Windows 10 PC is connected to a network (at home, at work, or at a coffee shop), other computers on the same network might be able to access your local server. To protect your work:
Open the file in a text editor (like Notepad, VS Code, or Sublime Text) and insert the following code:
Choose your language, click through the final prompts, and allow the installer to extract the files. Once complete, check the box that says "Do you want to start the Control Panel now?" and click . Navigating the XAMPP Control Panel
Navigate to the XAMPP directory on your computer: C:\xampp\htdocs\ . The htdocs folder is the public root directory where all your local websites must live. Create a new folder inside htdocs and name it my_project . Inside my_project , create a file named index.php .
Require all granted
That simple message——represents a fully functional LAMP/WAMP stack running on your local machine. It is the starting line for:
Find the line that says ServerName localhost:80 and change it to ServerName localhost:8080 . Save and close the file. Next, click again and select httpd-ssl.conf . Find the line Listen 443 and change it to Listen 4433 . Save and close the file.