Your FTP client should now connect to the server and enter the C:\xampp\htdocs directory, which is the default Web server document root.

Transfer the file from your home directory to the server using normal FTP transfer conventions. If you’re using a graphical FTP client, you can usually drag and drop the file from one directory to the other. If you’re using a command-line FTP client, you can use the FTP PUT command.

Once the file is successfully transferred, you should be able to see it in action by browsing to http://localhost/example.php, as shown below: