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

Комментарии • 136

  • @poolmagic2023
    @poolmagic2023 3 года назад +1

    Very good job, and smooth explained.Well done sir!

  • @MrTuttu34
    @MrTuttu34 4 года назад +3

    You give without a vest & You give it a lot.

  • @pollyolly851
    @pollyolly851 4 года назад +3

    Is PHP becoming a general programming language like python. Great work.!

  • @On7D7
    @On7D7 4 года назад

    Super Great ...keep up the good job man

  • @erdemsandikci8794
    @erdemsandikci8794 4 года назад +3

    You are great man !

  • @SulochanaTutorials
    @SulochanaTutorials  4 года назад

    Please also watch this video ruclips.net/video/-frCfUepNiA/видео.html for developing application with SQLite

  • @praveenkumar5428
    @praveenkumar5428 2 года назад

    thank you so much sir, it was outstanding

  • @rozzefavour5335
    @rozzefavour5335 3 года назад

    Thank you. this is very helpful

  • @maulikpaneliya29
    @maulikpaneliya29 3 года назад

    you Are Reallly Good It is help me for my project thank you

  • @yogawahyudi4138
    @yogawahyudi4138 4 года назад +1

    that's great sir, may I ask you something sir, Which one the best DB I use for php dekstop aplication??

  • @pradipmaharajkatare
    @pradipmaharajkatare 2 года назад

    i am not understand which database credentials you import in that ..is it localhost credentials or server credentials

  • @guptarahul97480
    @guptarahul97480 3 года назад

    if my half project is in laravel and half in php will that be an issue ?

  • @drabd0o
    @drabd0o 2 года назад

    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?

  • @hiyaikhombaloitongbam4746
    @hiyaikhombaloitongbam4746 4 года назад +1

    how can we do it for local server using mysql

  • @bhaumikable
    @bhaumikable 3 года назад

    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?

  • @immanuelaito7556
    @immanuelaito7556 2 года назад

    I'm new. Will the desktop application need internet to run/connect to database?

  • @thebhojpurideveloper4921
    @thebhojpurideveloper4921 4 года назад

    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

  • @subratamallik7662
    @subratamallik7662 3 года назад +3

    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.

    • @SulochanaTutorials
      @SulochanaTutorials  3 года назад

      Please ask or search question on official PHPdesktop git repository

  • @HIEdukasi
    @HIEdukasi 4 года назад

    how to use web server offline like xampp?

  • @maxson4389
    @maxson4389 3 года назад

    sir, I am struggling with webcam.js javascript which is not supported by PHP desktop (error when using a webcam)
    please me sir

  • @KanishkaBandaraOfficial
    @KanishkaBandaraOfficial Год назад

    Thank you Sir!

  • @mishenthakshana3407
    @mishenthakshana3407 3 года назад

    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

  • @zaileeradabaro7738
    @zaileeradabaro7738 3 года назад

    how to disable or hide minimize button? also hiding maximize button?

  • @ghsdhrorwahin3327
    @ghsdhrorwahin3327 2 года назад

    Great work and fun! specially " running php without sex and server"

  • @albertojorgematsinhe9651
    @albertojorgematsinhe9651 4 года назад +2

    It is possible to use the framework with laravel project, I m trying i get error page not found etc

    • @SulochanaTutorials
      @SulochanaTutorials  4 года назад +1

      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

    • @mister-ace
      @mister-ace 3 года назад +1

      @@SulochanaTutorials and what did you get?

  • @alparmag
    @alparmag 2 года назад

    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

  • @alaindevtecchannel2232
    @alaindevtecchannel2232 2 года назад +1

    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 ?

  • @user-yn6qz6nz8b
    @user-yn6qz6nz8b Год назад

    how to make with local microsoft SQL server database ?

  • @heykervargasfernandez7140
    @heykervargasfernandez7140 4 месяца назад

    Thanks! Master

  • @farrasfadhils.739
    @farrasfadhils.739 8 месяцев назад

    sir why my app can't work with javascript bootstrap and fetching data with javascript

  • @shahlizah
    @shahlizah 3 года назад

    I get sln file instead of exe. Why is that?

  • @roman5403
    @roman5403 4 года назад

    Cool!

  • @sundayadeyeye2586
    @sundayadeyeye2586 Год назад

    i'm getting error when i try using laravel 8,.... please can you help out

  • @tricksmix5627
    @tricksmix5627 3 года назад

    Amazing..

  • @praveenkumar5428
    @praveenkumar5428 2 года назад

    setup file is created successfully, but it is running very slow

  • @FunNationTricks
    @FunNationTricks 3 года назад

    You saved my life. Is there any option to save the data locally???????

  • @shrustimane5959
    @shrustimane5959 4 года назад

    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: )

    • @SulochanaTutorials
      @SulochanaTutorials  4 года назад

      I will try first. Please do post issue on official phpdesktop github page so they can respond you

  • @waleedgrt4904
    @waleedgrt4904 4 года назад

    amazing

  • @osmanaltnok5233
    @osmanaltnok5233 4 года назад

    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.

  • @jiricejn3107
    @jiricejn3107 3 года назад

    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?

    • @SulochanaTutorials
      @SulochanaTutorials  3 года назад

      Please check for innosetup documentation. I don't know it. If you find something then please comment here. I will also search for it.

  • @junaidkm4926
    @junaidkm4926 4 года назад +1

    Great job...
    Header function is not working to me ..please help

    • @SulochanaTutorials
      @SulochanaTutorials  4 года назад

      PHP DESKTOP Fully support header function. Please check same coding working in XAMPP browser. Try to use ob_start() function

  • @johnpaulpallasigui5516
    @johnpaulpallasigui5516 4 года назад

    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?

    • @SulochanaTutorials
      @SulochanaTutorials  4 года назад +1

      Yes

    • @johnpaulpallasigui5516
      @johnpaulpallasigui5516 4 года назад

      @@SulochanaTutorials i hope u can provide a tutorial for this using xampp. 😊

    • @SulochanaTutorials
      @SulochanaTutorials  4 года назад +1

      @@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.

    • @johnpaulpallasigui5516
      @johnpaulpallasigui5516 4 года назад +1

      @@SulochanaTutorials Thanks :)

  • @jeansetone9658
    @jeansetone9658 3 года назад

    how to connect with a server web

  • @devngecu
    @devngecu 4 года назад

    The application is not accepting sessions eg.username passing as session name.any idea about that?

    • @SulochanaTutorials
      @SulochanaTutorials  4 года назад

      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'];

    • @devngecu
      @devngecu 4 года назад

      @@SulochanaTutorials It worked.The problem i had placed the "session_start()" in the midst of the codes.Thanks Alot

    • @SulochanaTutorials
      @SulochanaTutorials  4 года назад

      @@devngecu Always Welcome

  • @yadhunadhchemmarassery2235
    @yadhunadhchemmarassery2235 4 года назад

    Can you please tell me, how to update the php file changes and mysql database changes offline in the client machine?

    • @SulochanaTutorials
      @SulochanaTutorials  4 года назад

      Replace www folder

    • @yadhunadhchemmarassery2235
      @yadhunadhchemmarassery2235 4 года назад

      @@SulochanaTutorials OK, and can i replace the www folder remotely and send the .exe file to client? Thanks!

    • @SulochanaTutorials
      @SulochanaTutorials  4 года назад

      @@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.

    • @yadhunadhchemmarassery2235
      @yadhunadhchemmarassery2235 4 года назад

      @@SulochanaTutorials OK thanks

  • @lindagamin1594
    @lindagamin1594 4 года назад

    is it possible to make it all offline? like there is no need for a remote server

    • @SulochanaTutorials
      @SulochanaTutorials  4 года назад

      Yes, If you use SQLite for database then everything will work offline

  • @laughout199
    @laughout199 4 года назад

    Great work, the host name and pass are left easily accessible in the www file, how do i encrypt them

    • @SulochanaTutorials
      @SulochanaTutorials  4 года назад

      You can store all back end code to server and just make Ajax request to fetch data from server.

  • @beststory4u
    @beststory4u 3 года назад +1

    warning: mysqli_connect(): (hy000/1045): access denied for user
    Sir i am geting this error please help me sir

    • @akshaypendyala
      @akshaypendyala 3 года назад

      Maybe the user is not present/you used wrong password for the user/ you dont have permission to access database!

  • @shifnashoukathali7075
    @shifnashoukathali7075 4 года назад

    Need hlp
    Connecting app with SQL is not working
    How can I do this.....

    • @SulochanaTutorials
      @SulochanaTutorials  4 года назад

      What server you are using online or offline. Please mention error.

  • @prantobiswas5611
    @prantobiswas5611 4 года назад

    Is there any way to sync that php software and php website?

    • @SulochanaTutorials
      @SulochanaTutorials  4 года назад +1

      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.

    • @prantobiswas5611
      @prantobiswas5611 4 года назад

      @@SulochanaTutorials thank you!

    • @SulochanaTutorials
      @SulochanaTutorials  4 года назад +1

      Welcome

  • @mediadesa_org
    @mediadesa_org 4 года назад

    Nice video

  • @hemangichandgude4532
    @hemangichandgude4532 3 года назад

    where we add external css and js files when creating php desktop application bcoz css and js functions are not working

    • @SulochanaTutorials
      @SulochanaTutorials  3 года назад

      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

    • @hemangichandgude4532
      @hemangichandgude4532 3 года назад

      @@SulochanaTutorials can you please give any example to set path $_server

    • @SulochanaTutorials
      @SulochanaTutorials  3 года назад

      @@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.

    • @hemangichandgude4532
      @hemangichandgude4532 3 года назад

      @@SulochanaTutorials its not working

    • @SulochanaTutorials
      @SulochanaTutorials  3 года назад

      @@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

  • @jonnys-james1226
    @jonnys-james1226 4 года назад

    For cpanel, do I need to make a new account? Haven't used it before

  • @indiatech5716
    @indiatech5716 4 года назад

    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

    • @SulochanaTutorials
      @SulochanaTutorials  4 года назад

      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

    • @indiatech5716
      @indiatech5716 4 года назад

      @@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.??

  • @sandeepM007
    @sandeepM007 4 года назад

    Please give billing application that you used in this video

  • @syedzaidshah6578
    @syedzaidshah6578 4 года назад

    how to change this display icon?

    • @SulochanaTutorials
      @SulochanaTutorials  4 года назад

      At the time of creating installer set icon file. Remember that your image should be .ico extension

  • @tezeramengistu7567
    @tezeramengistu7567 3 года назад

    👍👍👍👍👍👌

  • @saranghe4652
    @saranghe4652 3 года назад

    I want to use local database instead of remote database. Is it possible?

    • @SulochanaTutorials
      @SulochanaTutorials  3 года назад

      Yes start MySQL server at local and give connection according to it or you use SQLite Database.

    • @saranghe4652
      @saranghe4652 3 года назад

      @@SulochanaTutorials Ok. Thank you. I will try it. This tutorial was very helpful for me..👍

  • @keivenmangin8096
    @keivenmangin8096 Год назад

    Hello, Is it possible to change the app blue icon into my app icon?

    • @SulochanaTutorials
      @SulochanaTutorials  Год назад

      Yes

    • @keivenmangin8096
      @keivenmangin8096 Год назад

      @@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

  • @yliasfranckeric5720
    @yliasfranckeric5720 4 года назад

    hey bro how i can use it with my online project ?? please

    • @SulochanaTutorials
      @SulochanaTutorials  4 года назад

      Yes, Download you project. Change your database settings according to this video

  • @imhusain.x
    @imhusain.x 3 года назад

    what is ."/billing" IN CONNECTION PHP after port no...

    • @SulochanaTutorials
      @SulochanaTutorials  3 года назад

      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.

    • @imhusain.x
      @imhusain.x 3 года назад

      @@SulochanaTutorials not connected data base..

    • @SulochanaTutorials
      @SulochanaTutorials  3 года назад

      Where is your database. Local or online

    • @imhusain.x
      @imhusain.x 3 года назад

      @@SulochanaTutorials local

    • @imhusain.x
      @imhusain.x 3 года назад

      @@SulochanaTutorials i use sql data base which by default...... phpmyadmin...

  • @safnaj
    @safnaj 4 года назад

    Is our php codes protected ?? Can someone copy from our source folder ?

    • @SulochanaTutorials
      @SulochanaTutorials  4 года назад

      Not yet

    • @safnaj
      @safnaj 4 года назад

      Sulochana Tutorials what could be a solution for this ?

  • @sheerazahmad5289
    @sheerazahmad5289 4 года назад

    How to o enable print preview

  • @anuragsinha8715
    @anuragsinha8715 3 года назад

    Sir Is this work Window 7 64 bit pls let me know...

  • @MultiMaN95
    @MultiMaN95 4 года назад

    can it be used offline without internet connection?

    • @SulochanaTutorials
      @SulochanaTutorials  4 года назад

      Yes, You can but you need to use SQLite for database. Just Google SQLite in PHP.

    • @MultiMaN95
      @MultiMaN95 4 года назад

      @@SulochanaTutorials thanks but please can you make a video on how to use it and compile with php desktop to exe?

    • @SulochanaTutorials
      @SulochanaTutorials  4 года назад

      @@MultiMaN95 Okay

    • @MultiMaN95
      @MultiMaN95 4 года назад

      @@SulochanaTutorials thanks

    • @heitor479
      @heitor479 4 года назад

      Is it right? The offline version requires sqlite, but with internet connection it's able to run with MySQL?

  • @imhusain.x
    @imhusain.x 3 года назад

    php myadmin ke liye bata do......

  • @spectralquill1810
    @spectralquill1810 3 года назад

    Why do you sound like Memenade?