I have built a website using php, jquery and mysql.it is running on the server now
Ive seen a Couple website to convert local php pages to exe files.
But i am looking for a program that will allow me to run my website inside the exe
Is it possible to run a website on A Server in an Exe.
I was thinking of using an hta but it isn't much compatible with Internet Explorer. It changes the look and position of element on the website.
The reason is because I don't want people viewing the source of my website and some other reasons.
NuSphere has a product that can do what you are looking for. It is called PhpDock. I have used it and it performs as advertised. It comes with a web server built into it, so all you have to do is distribute the .exe to the user and they will then be able to run your web application as a native application.
NuSphere PhpDock Product Page
Related
As I am a beginner in coding, I just made some html files but want some codes to process the inputs so I got to know about php files which is capable of processing inputs of html.So I made three php files for processing html inputs. As I mentioned before, I am beginner so I don't know how the files run. Whenever I try to submit my html inputs it always shows "file is not supported ". So how can I run html along with php files in my computer ? And if it is successful then could I run it on my android device?
In order to run php script you should have php interpreter installed on your system and also a web server. I suggest you to install Wamp or Xamp on your pc. These softwares have all you need in one package. Then you can achieve your goal. About the second part, running on android, there is not a proper way of doing that cause php is a scripting language for developing web applications not mobile apps. If you want to make an app for android you should use Kotlin, Java or other options.
I have made a web application with php and mysql in wamp server. Now i want to convert it into desktop application for windows platform which will run offline as complete desktop application.
Please anybody help me. Because it so so important for my job place...
Thanks..
nightrain - https://github.com/kjellberg/nightrain
PHP Nightrain is a packager written in Python for the PHP Programming Language. Using this tool you can convert your PHP/HTML/CSS/Javascript application to a Native Desktop Application. Currently, PHP Nightrain supports the Windows, Mac (OS X) and the Linux operating systems.
PHP Desktop - https://github.com/cztomczak/phpdesktop
PHP desktop GUI framework with HTML5 Chrome/IE engine.
You can check out exeoutput for php. It's a paid application priced at one time fee of USD 99. They also have discounts for students and teachers.
It outputs the file in a single exe file format for Windows and the exe can be run as a standalone file without installation and portable in a USB too with complete web server, chrome browser packaged as an application.
You don't need to rewrite your existing html, php code and can use it as it is.
You can also connect to sqlite and mysql databases if your app is database dependent and place the database either outside the main exe or embedded inside it. The latest version is packaged with php 7.3 which you can upgrade if needed. All major php modules are included by default
Your complete PHP, HTML java script code is protected since it's inside of an exe which doesn't extract when running so no one can reverse engineer the code and redistribute your app. You can also set a splash screen png image, an expiration date so just in case some one redistributes it, it will become invalid and unusable after the expiration date. changing the system clock will not allow reuse of the expired app.
I have been using it for some time and that's the only solution i found which was polished enough for use.
I tried PHP Desktop before but the code is exposed in that case and end user can modify your code and redistribute it in PHP Desktop.
Note: I am not associated with exeoutput in any way but found the app so useful hence the lengthy answer.
I wanted to convert my php application into desktop application to run it as an .exe file by just double clicking on it. For this I found many third party softwares like bamcompile,wapache,Php desktop chrome,etc. From these the most compatible and the one which fulfilled my requirements to accountable extent was php desktop chrome.The rest both had their drawbacks-
1.Bamcompile-It runs the application on commandline and does not show GUI,so I was not comfortable with that.
2.Wapache-It runs the application but it run it in Internet explorer browser so it cannot run the framework supported by my application.I need Google Chrome for that.
3.Php desktop chrome- This fulfills my requirement to a great extent but the problem is that it does not supports sql server database.I thought about using sql server as database because I don't want to install xampp/wamp on every machine where I want to use my application.I added the drivers needed for using sql server to php desktop/ext folder but I am not finding the php.ini in php desktop application where I can add extension to it.So it there any way that I would not have to install xampp/wamp or any other application on client machine to run my application.
Problem with converting the application into exe file is solved with php desktop. That means when I start only mysql from xampp my application runs perfectly fine ,there is no need to start apache for that.So now I want to do something that can include my database as well in the php desktop chrome folder and supporting application into it as well.So that I don't need to start phpmyadmin always.Or is it possible to install only phpmyadmin/MySQL without xampp and if yes how to configure that?Because I installed that individually but I don't know why is it showing Access denied.
Thanks in advance.
I have tried to provide as much details as possible ,in case you need to know anything else,please let me know. I have tried all possible way please help me out.
Your need is quite exotic. Try phpinfo() in your application - then you will find where your php.ini is served from. That might put you on track. Another thing to try, if your database is not too big, SqlLite database in your project, because it is bundled with php and does not require a separate server.
I recently started PHP (I am a beginner) and I wanted to create a form with HTML to add numbers together. However, when I send queries to PHP it shows my source code (because it is not a server - file is run locally). I was wondering would it be possible to preview my PHP's code result on a website of some sort or even better on my computer? Do you know any services or ways to accomplish this, preferably free of charge?
To run php files online, go to Write Code Online.
As long as you can install programs on your computer, you should install a web server to run php files locally. To run any basic app, especially if it uses forms, you will use multiple php files and the testing will be too complex to run online. If you are using windows, install wamp. For mac, try mamp.
you seriously require some help :-)
First, PHP is a server side scripting language, so it requires server (like Apache, which you can install using the wamp or xampp installers) Try to search google on how to install them on local computer.
Second, their are some online PHP editors, like http://www.compileonline.com/execute_php_online.php or writecodeonline .com and many others. It may not replace the server but helps to write the PHP code and execute it for the sake of practising.
Also, it is better if you read some tutorials about PHP. One tutorial I can point you to is the http://www.w3schools.com/php/php_form_complete.asp which is related to question.
Do I need a special library to run PHP on Windows environment Vista?
I can write simple message like echo "hello" but whenever I try to run any these scripts no error nothing display on the page http://php.net/manual/en/function.crypt.php.
I'm new to PHP please help
When in doubt...
<?php echo phpinfo(); ?>
If that code outputs information regarding your PHP version and settings, PHP is installed correctly.
There would be errors in your code if nothing is displaying. Post the code you are having trouble with and we can help you out.
Have you actually set up a local server? You'll need this to run PHP scripts. For a newbie I'd recommend WampServer since it's really easy and handles all the complexity of installing a server. Once installed and running, try http://localhost/ in your web browser.
Based on your comment though, I think the problem is that the sample code on the page you posted won't work on their own, you'd need to combine them with other things. For example the first one references a variable $user_input which you'd replace with a variable taken from user input (eg a form) on your site.
I suggest finding some tutorials online (or buy a book) and walk through various proper examples to familiarise yourself with PHP.
Do you have PHP / Apache installed at the moment? If you don't, try XAMPP. It comes with an easy and convenient installer.
Like most languages your computer must have the language/compiler installed in order develop and run scripts/applications. PHP was originally designed for web development so you won't usually find it installed on PCs by default.
The easiest way to develop PHP is to upload the scripts to a web server that has PHP installed and then test in your browser in the same fashion that you'd test an HTML page.
Otherwise to do it locally on your computer you can install a web development environment which acts like a web server. Essentially eliminating the upload step.
I believe the most popular for Windows is Wamp Server