我是詹涅什……我想知道如何执行从用户那里收到的代码.请帮我 [英] i m jagnesh...... i want knw how to execute code which is received from user .... . Plz help me

查看:43
本文介绍了我是詹涅什……我想知道如何执行从用户那里收到的代码.请帮我的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是jagnesh ......我想知道

如何执行从用户接收的代码....
.请帮助

i m jagnesh...... i want know

how to execute code which is received from user ....
. Plz help

推荐答案

这在很大程度上取决于要执行的代码.

如果该代码针对Web应用程序,则需要使用该代码创建一些Web应用程序,并使用某些支持PHP的Web托管将其部署在某些服务器上.

它可以是独立的PHP应用程序.要运行它,您需要安装PHP: http://www.php.net/ [
参见:
http://en.wikipedia.org/wiki/Apache_HTTP_Server [ http://httpd.apache.org/ [ ^ ]

一种远程替代方法是:您可以在.NET和/或ASP.NET网站中运行和调试(某些)PHP代码.最简单的方法是Microsoft Visual Studio,它已经提供了一个开发HTTP服务器,该服务器已启用ASP.NET并已正确配置.最重要的是,您需要安装Phalanger和Plalanger Visual Studio集成附加组件.

参见:
http://en.wikipedia.org/wiki/Phalanger_%28compiler%29 [ ^ ],
http://www.php-compiler.net/ [
It depends too much on what that code is made to do.

If the code targets Web application, you need to create some Web application using the code and deploy it on some server using some Web hosting which supports PHP.

It can be a stand-along PHP application. To run it, you need to install PHP: http://www.php.net/[^].

Now, let''s come back to the Web application. Alternatively, you can host and run a Web application with PHP on your local computer. The easiest way to do this is this: 1) install PHP; 2) install Apache HTTP server; 3) install the Apache "module" mod_php on your Apache server and configure it to use PHP installed on the first step. Normally, mod_php is a standard option included in Apache installation.

See:
http://en.wikipedia.org/wiki/Apache_HTTP_Server[^],
http://httpd.apache.org/[^]

One remote alternative is this: you can run and debug (some) PHP codes in .NET and/ore ASP.NET Web site. The easiest way to do it is Microsoft Visual Studio which already provides a development HTTP server which is ASP.NET enabled and configured properly. On top of that, you need to install Phalanger and Plalanger Visual Studio integration add-on.

See:
http://en.wikipedia.org/wiki/Phalanger_%28compiler%29[^],
http://www.php-compiler.net/[^].

—SA


这篇关于我是詹涅什……我想知道如何执行从用户那里收到的代码.请帮我的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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