Create executable program with php, html and mysql

Asked

Viewed 6,059 times

0

Hello, I wonder if there is how I create an application in php, using html and integrate with mysql, but after created there is a way I convert to executable, making when it opens it run in client localhost? If not, what language would you indicate me to make a program that runs on windows and has a user-friendly interface to work with.

  • 1

    You better use another language for sure!

  • What language you recommend me rray, a simple language and that can have a user-friendly interface.

  • Delphi or C#, both have Ides with multiple components ready, you can drag them onto the screen and manipulate them the way you want it is simpler than HTML, then you program the features and link them to component events (similar to javascript events).

2 answers

2

Using PHP as Desktop Software is not the best option. But you have two ways to do it.

With the PHPDESKTOP and with the PHP-GTK.

I am not an expert on desktop languages, but they will certainly advise you to use another language.

1

First, PHP is a interpreted language and as such, no executable files are generated from it. You can even create desktop applications using the PHP-GTK, but as the language was not created for this purpose, several problems may occur.

If your goal is to run PHP (almost completely) without the need to install anything in the client (other than PHP itself), you can use the internal language server. The command below creates a local server and allows access to PHP on localhost.

php -S localhost:80 -t /path/to/php/site

just change the number 80 by the port you want and change the /path/to/php/site for the path of your PHP script

Browser other questions tagged

You are not signed in. Login or sign up in order to post.