Today I want some help as to how can i make a file/script (like may be an icon) as to run a php project with single click on my localhost. I am on Windows OS and been using XAMPP. Also the project has a MySQL database. An .exe file would have been great but i tried "EXEOUTPUT FOR PHP 1.7" but it cannot connect with my MySQL database. So I thought can a SCRIPT/FILE be made which can start my xampp, apache server, mysql and then automatically run my project which is in htdocs folder.
Any help/suggestion in this regards
I have create a .bat file which allows user run program
create test.bat file (for windows) and paste below code
@echo off cd "D:\xampp\" //your xammp path start xampp_start.exe TIMEOUT 10 //set timeout until xampp control fully start cd "C:\Program Files\Google\Chrome\Application" //your chrome path start chrome.exe 127.0.0.1\myProjectName //your url exit
Before Executing file please remove all comments
ALSO HAVE TO KEEP THE BATCH FILE IN THE SAME DRIVE AS XAMPP