How to run an php application without installing xampp on client system?

人走茶凉 提交于 2019-12-04 05:55:10
ideonexus

I'm a big fan of server2go. I've used it to deploy PHP applications on CD/DVD. It comes with MySQL and is relatively easy to configure. I've even replaced their splash screen with my own so no one knows I'm using it. It's donationware, but I was impressed enough to donate:

server2go-web

With this application, you don't have to install all that other stuff. It's self-contained in this executable and directory.

EDIT: To clarify, server2go does not install anything on the client machine. It runs as an exe only when you specifically want it to. When you click on the .exe file, it launches your PHP application in a browser window, then you can right-click on the server2go icon in the system tray and close it when you're done.

EDIT2: One gotcha: if you want to save data to the MySQL db on the client machine, you'll need to copy serve2go to a directory on the client machine or run it on a writable USB stick. If you run this application off CD/DVD, it will be able to read data from the database, but not write.

You can either host the php application or install the application into one system as server and call in client system using the ip of the server system like the following

http://**ip address/php file name

The better way is to use PHP Desktop Application. It will allow you to run your PHP Script like a Desktop application and you don't need to install Xampp or any other web server to run.

PHP Desktop Application

After downloading the .Zip file unzips it to any folder that you like. After unzipping, Go to the folder, and there you can see a folder "www". Delete all the files contained in it and move all your php script to it.

Once you moved all your files into it. Run the .Exe file named "PHP desktop-chrome"

It will open your PHP Script really like a Desktop Application.

This script doesn't require any kind of server software like Xampp, Wamp, Etc installed in your PC.

If you don't want your client to install anything then you should create Client Server architecture, there is no another way.

PHP Application are not meant to be deployed on multiple clients. It's meant to be deployed on a webserver (your own server with sth. like IIS or XAMPP) so the clients can access it via their browser and doesn't have to install anything more.

If you want to deploy applications on the client pc's i recommened an other programming language like Java or C/C++.

I simply used xampp zip version so i copied my application into htdocs and the whole xampp is given to the customer so he simply running the application eazily without installation.

I really dont want to use any external software to open PHP pages so I did some digging and found that if you run php -S localhost:port in your working directory you basically start a server there.

S is a capital S and not s

No, you need some kind of server - Wamp, Xampp, etc.

You can host it online, and then he can just browse it from his PC.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!