Como executar o arquivo php em xampp
1. Install xampp.
2. Open xampp control panel and start Apache.
3. Go to xampp main folder and open "htdocs" and insert your project file.
4. Open your browser and type "localhost:FolderNameinHTDocs/phpfilename.php"
PanosG