如何在客户端系统上不安装 xampp 的情况下运行 php 应用程序? [英] How to run an php application without installing xampp on client system?

查看:26
本文介绍了如何在客户端系统上不安装 xampp 的情况下运行 php 应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我必须在客户端系统上部署我的应用程序.那么有什么方法可以在不安装 xampp 的情况下运行我的 php 应用程序...

In my application i have to deploy my application on client system. So is there any way to run my php application without installing xampp...

因为客户端应该在不安装任何东西的情况下作为现成的应用程序访问它...

Because the client should access it as a readymade app without installing anything...

这是我的项目的描述...

This is the description of my project...

我们必须开发一个应用程序,客户端将让我们的应用程序连接到远程服务器

We have to develop an application where the client will have our application he will connect to remote server

然后他会从远程服务器下载数据...

Then he will download the data from remote server...

然后他使用该应用程序使用下载的数据

Then he uses that downloaded data using that app

这里我的要求是用户可能不知道安装 xampp...

Here my requirement is the user may not have the knowledge of installing the xampp...

那么有什么办法可以通过复制一些文件在用户系统中运行应用程序

So is there any way to run the application in user system just by copying some files

你可能会建议我一键解决方案(比如使用安装程序,其中包括安装 xampp 并将我的数据复制到用户系统中)

U may suggest me a one click solution (like using installer which will include installation of xampp and copying my data into user system)

推荐答案

我是 server2go 的忠实粉丝.我用它在 CD/DVD 上部署 PHP 应用程序.它与 MySQL 一起提供,并且相对容易配置.我什至用我自己的替换了他们的启动画面,所以没有人知道我在使用它.这是捐赠软件,但我对捐赠印象深刻:

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.

澄清一下,server2go 不会在客户端机器上安装任何东西.它仅在您特别需要时才作为 exe 运行.当您单击 .exe 文件时,它会在浏览器窗口中启动您的 PHP 应用程序,然后您可以右键单击系统托盘中的 server2go 图标并在完成后关闭它.

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.

一个问题:如果您想将数据保存到客户端机器上的 MySQL 数据库,您需要将 serve2go 复制到客户端机器上的目录或在可写 U 盘上运行它.如果您在 CD/DVD 上运行此应用程序,它将能够从数据库读取数据,但不能写入.

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.

这篇关于如何在客户端系统上不安装 xampp 的情况下运行 php 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆