how to open php file in xampp code example Example: run php in xampp Click to copyPut PHP code files into the folder C:\Program Files\XAMPP\htdocs