PHP Desktop: Make Windows application Using HTML, JavaScript, PHP and MySQL
HTML-код
- Опубликовано: 4 окт 2019
- PhpDesktop for Windows:
github.com/cztomczak/phpdeskt...
PHP Desktop v72.1 for Linux:
github.com/cztomczak/phpdeskt...
-------------------------------------
Innosetup Download Link:
jrsoftware.org/isdl.php
Step by Step tutorial to Convert Web Application to Windows Application
PHP Desktop is an open source project founded by Czarek Tomczak in 2012 to provide a way for developing native desktop GUI applications using web technologies such as PHP, HTML5, JavaScript and SQLite. Think of it as Electron for PHP. It is a convienient tool for converting PHP web apps and PHP CLI tools to desktop applications with little effort. The development workflow you are used to while creating web applications remains the same, there is no new framework / API to learn. The process of turning an existing website into a desktop application is basically a matter of copying it to the "phpdesktop/www/" directory.
In a certain sense phpdesktop acts as a PHP to EXE compiler. It embeds a web browser, a multi-threaded web server and a PHP interpreter. All embedded into a single application, a portable folder that you can easily distribute to end users by packing it to zip archive or by making an installer for your application. The web server embedded is a custom edition of Mongoose, a web server used by NASA on International Space Station. Supported browsers are Internet Explorer and Google Chrome via open source Chromium. The package with Chrome embedded has no external dependencies, everything is included in phpdesktop binaries and works out of the box on a user's computer.
All popular PHP frameworks are supported, see the PHP frameworks support wiki page for example configurations for CakePHP, CodeIgniter, Laravel, Symfony, Yii and Zend Framework. You can create a standalone executable for distribution with the help of the Inno Setup installer. PHP sources can be protected with the many of the available PHP encoders. PHP Desktop is released under non-restrictive license, thus it is free for commercial use.
It is one of the top goals for PHP Desktop to be stable, to work reliably. PHP Desktop does not suffer from memory leaks. PHP by design was never intended for running long hours/days, as desktop applications usually do. This is not a concern when using PHP Desktop, as it is running an internal web server and serving pages through CGI. So when PHP script execution ends, PHP-CGI process is killed and all memory is always freed.
--------------------------------------------------------------
PHP Desktop Application with Installer Tutorial - RUclips
PHP Desktop Application with Database - RUclips
Portable MySql and PHP Desktop Applications With ...
php desktop application - RUclips
How to make desktop application(.exe) in PHP - RUclips
PHP Desktop App Installation of PHP Desktop Chrome
PHP desktop Application with SQLite database
PHP Desktop Application [URDU / HINDI] - RUclips
desktop application with laravel - RUclips
PHP Desktop App How to make CRUD in SQLite database
php desktop laravel
php desktop codeigniter
how to use php desktop-chrome
php desktop chrome tutorial
php desktop chrome github
php desktop chrome setting
#phpdesktop
php desktop chrome 57.0 download
Very good job, and smooth explained.Well done sir!
You give without a vest & You give it a lot.
Is PHP becoming a general programming language like python. Great work.!
Super Great ...keep up the good job man
You are great man !
Please also watch this video ruclips.net/video/-frCfUepNiA/видео.html for developing application with SQLite
thank you so much sir, it was outstanding
Thank you. this is very helpful
you Are Reallly Good It is help me for my project thank you
that's great sir, may I ask you something sir, Which one the best DB I use for php dekstop aplication??
i am not understand which database credentials you import in that ..is it localhost credentials or server credentials
if my half project is in laravel and half in php will that be an issue ?
Thanks for your Amazing explantion , although My application not able to login in the same time on Localhost is working fine but in the Phpdisktop not login?
how can we do it for local server using mysql
I am using CI and it works. But SQLite performance is very low. it takes 1-1.5 sec. for each transaction. Do you have any solution for that?
I'm new. Will the desktop application need internet to run/connect to database?
Someone help me guys:: I had website in php html JavaScript and css which works well on xampp server but while converting it to desktop app the JavaScript is not functioning
Nice concept to create a Desktop Application using PHP.
But after installation all the php file is visible in www folder in installed drive. And may problem of privacy (for both php code and remote DB access). Please suggest the best way to encrypt those code or way to hide from general user and experts.
Please ask or search question on official PHPdesktop git repository
how to use web server offline like xampp?
sir, I am struggling with webcam.js javascript which is not supported by PHP desktop (error when using a webcam)
please me sir
Thank you Sir!
Sir is there any way to update the php version to the latest of this.I tried updating php by replacing that folder with the latest version of php and mysql doesnt support with that.Please reply me sir, have a great day
how to disable or hide minimize button? also hiding maximize button?
Great work and fun! specially " running php without sex and server"
It is possible to use the framework with laravel project, I m trying i get error page not found etc
Please complete your project using laravel artisan development environment and then convert it to deployment version. I think it should work. I will try it today and reply you soon
@@SulochanaTutorials and what did you get?
When the window opens, I get the following error:
Error 500: Internal Server Error
CGI program sent malformed or too big (>16384 bytes) HTTP headers: []
Please help me and thanks
Thank you so much for this video, it's really amazing.
However, I would like to ask a question: can that setup (the setup created) be installed on another computer without any problem ?
Any answer yet ?
how to make with local microsoft SQL server database ?
Thanks! Master
sir why my app can't work with javascript bootstrap and fetching data with javascript
I get sln file instead of exe. Why is that?
Cool!
i'm getting error when i try using laravel 8,.... please can you help out
Amazing..
setup file is created successfully, but it is running very slow
You saved my life. Is there any option to save the data locally???????
Hello, I have tried to do it with codeigniter and I have not been successful, can you help me to do it with codeigniter?
the error is
Message: session_start(): Failed to initialize storage module: user (path: )
I will try first. Please do post issue on official phpdesktop github page so they can respond you
amazing
my web site is .swf, will it work if I convert it? because my game is .swf based and will be over by the end of 2020.
I didn't tried. Please try yourself.
It is nice to have my own icon for setup file. But I want to have same (or any other) icon for exe file. How can I do it?
Please check for innosetup documentation. I don't know it. If you find something then please comment here. I will also search for it.
Great job...
Header function is not working to me ..please help
PHP DESKTOP Fully support header function. Please check same coding working in XAMPP browser. Try to use ob_start() function
Can I use xampp instead of SQLite if i want to make an offline app? And can it be compiled with innosetup so that when installed it will not install xampp anymore?
Yes
@@SulochanaTutorials i hope u can provide a tutorial for this using xampp. 😊
@@johnpaulpallasigui5516 PHP desktop doesn't comes with MySql Server. If you want to use MySql to store data then you can host your database at any online database server. You will get it free if you search. If you want to create portable offline application then you have to use Sqlite which is almost similar to MySQL.
@@SulochanaTutorials Thanks :)
how to connect with a server web
The application is not accepting sessions eg.username passing as session name.any idea about that?
It's fully support sessions. Please check that you have started session using session_start(); and try to set simple $_SESSION['username']='john'; on one page and try to print session variable on another page. Ex. session_start(); echo $_SESSION['username'];
@@SulochanaTutorials It worked.The problem i had placed the "session_start()" in the midst of the codes.Thanks Alot
@@devngecu Always Welcome
Can you please tell me, how to update the php file changes and mysql database changes offline in the client machine?
Replace www folder
@@SulochanaTutorials OK, and can i replace the www folder remotely and send the .exe file to client? Thanks!
@@yadhunadhchemmarassery2235 Yes, If you have made changes in PHP desktop settings then you need to send new exe file otherwise u can follow The logic something like this, Create 1 file which will check for update on remote. If there are updates It will download zip file from remote and unlink all file from www folder. and extract downloaded zip. If there updates in table structures in database then u also need to change everything using PHP.
Please refer version update logic first on google.
@@SulochanaTutorials OK thanks
is it possible to make it all offline? like there is no need for a remote server
Yes, If you use SQLite for database then everything will work offline
Great work, the host name and pass are left easily accessible in the www file, how do i encrypt them
You can store all back end code to server and just make Ajax request to fetch data from server.
warning: mysqli_connect(): (hy000/1045): access denied for user
Sir i am geting this error please help me sir
Maybe the user is not present/you used wrong password for the user/ you dont have permission to access database!
Need hlp
Connecting app with SQL is not working
How can I do this.....
What server you are using online or offline. Please mention error.
Is there any way to sync that php software and php website?
Httrack is ultimate. Please go to settings while creating project and change browser id to Linux. It will definitely work for you. You can search for mirror empty problem in RUclips.
@@SulochanaTutorials thank you!
Welcome
Nice video
where we add external css and js files when creating php desktop application bcoz css and js functions are not working
You can add css and javascipt similar as normal web application, If your CSS and JS is not loading then you can right click on PHP desktop application window , use open in browser and then inspect. PHP desktop application does not run on default port 80 so u can also try giving path with using PHP $_SERVER variable
@@SulochanaTutorials can you please give any example to set path $_server
@@hemangichandgude4532 Let's assume you want to link css file which is located at localhost/your-project/css/style.css and you want to link. Using PHP server variable you have to create base path similar like $_SERVER['SERVER_NAME']:$_SERVER['SERVER_PORT']/your-project/css/style.css or you can try giving path using relative location.
@@SulochanaTutorials its not working
@@hemangichandgude4532 Please create CSS file inside www/css/ folder and give link as . Its working for me.
Please check this link for code screenshot snipboard.io/yuzDYV.jpg
For cpanel, do I need to make a new account? Haven't used it before
You can try any free cpanel hosting such as 000webhost
@@SulochanaTutorials Remote database is not available for free users
Search remotesql.com
Hello sir, it is very good experience with localhost but when i try to connect my online remote server i faced a technical issue which is :- mysqli_connect(): (HY000/2002): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond ....
Please help me and advice how to solve it.
thanks
Please make sure that you have enabled remote mysql in Cpanel. If enabled use IP address of your online server as hostname. You can get IP address of your website using site www.site24x7.com/find-ip-address-of-web-site.html
@@SulochanaTutorials i am connecting with my sub domain. and i entered correct ip address but i am facing same technical error. is it possible with multiple databases bcoz i have multiple databases in my host cpanel.??
Please give billing application that you used in this video
Why you need it
how to change this display icon?
At the time of creating installer set icon file. Remember that your image should be .ico extension
👍👍👍👍👍👌
I want to use local database instead of remote database. Is it possible?
Yes start MySQL server at local and give connection according to it or you use SQLite Database.
@@SulochanaTutorials Ok. Thank you. I will try it. This tutorial was very helpful for me..👍
Hello, Is it possible to change the app blue icon into my app icon?
Yes
@@SulochanaTutorials how to change it? i have modified the settings in json but stil when i open the system the blue icon is they same
hey bro how i can use it with my online project ?? please
Yes, Download you project. Change your database settings according to this video
what is ."/billing" IN CONNECTION PHP after port no...
I have created base path. ./billing is folder name. I have create base path like $base_path="local host:80/billing/". PHPdesktop does not run on port 80 that's why I have get it from $_SERVER. YOu need to do this if your CSS/JS is not working.
@@SulochanaTutorials not connected data base..
Where is your database. Local or online
@@SulochanaTutorials local
@@SulochanaTutorials i use sql data base which by default...... phpmyadmin...
Is our php codes protected ?? Can someone copy from our source folder ?
Not yet
Sulochana Tutorials what could be a solution for this ?
How to o enable print preview
JavaScript window.print() worked for me.
Sir Is this work Window 7 64 bit pls let me know...
Yes, I also have same
can it be used offline without internet connection?
Yes, You can but you need to use SQLite for database. Just Google SQLite in PHP.
@@SulochanaTutorials thanks but please can you make a video on how to use it and compile with php desktop to exe?
@@MultiMaN95 Okay
@@SulochanaTutorials thanks
Is it right? The offline version requires sqlite, but with internet connection it's able to run with MySQL?
php myadmin ke liye bata do......
Why do you sound like Memenade?