问题
I have a folder in the localhost (local server folder) and what I want is to make it as an executable file where if you click that executable file, it will directly open to the web browser and also have its database.
回答1:
You can't make a folder an executable file. But if I understand your concern correctly. You can follow this step.
- Open your page in a browser (e.i Chrome)
- Click the Option Button on right upper corner of the browser (the 3 vertical dot icon -atleast in my case.).
- On More Tools Click Add to Desktop
- Then provide what name you like.
And you're done. You can copy the shortcut and put it anywhere you want. You can also pin it to task bar.
回答2:
I do deep research and it is possible to compile all your project from your locahost to the executable file.
I used:
- PHP Desktop Chrome by Czarek Tomczak
- DB Browser for SQLite (for my database connection)
- Inno Setup Compiler (to compile my project folder and convert it into executable file).
来源:https://stackoverflow.com/questions/48678125/how-to-make-my-folder-in-localhost-as-a-executable-file