使用PHP但不访问源 [英] use php but not access the source

查看:39
本文介绍了使用PHP但不访问源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些基于php的软件,我想提供给在我的网络服务器上运行的一些

企业(Linux上的apache)。


这些企业可以完全访问其所有Web文件。我想在我的php代码中设置

,这样他们的网站就可以利用

代码,而无需他们查看或下载代码。


最好的方法是将代码放在他们没有的目录中

访问并将其添加到php路径?


欢迎任何其他建议。


谢谢!

解决方案

"的/ dev / null的" <德****** @ BeginThread.com>在消息中写道

news:upJPb.98110


Rc4.607914@attbi_s54 ...

我有一些基于php的软件我想提供给在我的网络服务器上运行的一些企业(Linux上的apache)。

这些企业可以完全访问他们的所有网络文件。我想设置
我的PHP代码,使他们的网站可以利用代码,而无需他们看到或下载代码。

欢迎任何其他建议。 />
谢谢!




不,如果网络服务器可以执行它,那么网络服务器可以转储它。


你可以尝试我在网上找到的这个整洁的小工具:)

http://www-1.gzentools.com/encoder.php


-

Mike Bradley
http://www.gzentools.com - 免费在线php工具


如果你不想花钱,你最好的选择是别名申请

目录。这可以在虚拟主机定义中的apache中轻松完成。

主服务器w / php脚本@ http://example.com/theapp/thefile.php

在他们的域名上, http://theirdomain.com/theapp/thefile.php

httpd.conf(在他们的虚拟机设置中)

Alias / theapp / / home / approot / theapp /


现在,您可以与其他客户共享此应用程序的额外好处他们

可以从这段代码中受益。显然你应该修改脚本,以便它使用一些

种类的ID来识别每个客户的自定义......


不要被愚弄认为你必须对你的脚本运行一些编码器...


祝你好运,


-

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~

Wil Moore III,MCP网站: www.quicksitedesign。 com?em

Application Developer网站: www.digitallysmooth .com?em

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~

" / dev / null" <德****** @ BeginThread.com>在消息新闻中写道:upJPb.98110


I have some php-based software that I''d like to make available to some
businesses that run on my web server (apache on Linux).

These businesses have full access to all their web files. I''d like to set
up my php code in such a way that their web sites could take advantage of
the code without them being able to see or download the code.

Is the best way to do this put the code in a directory they don''t have
access to and add it to the php path?

Any other suggestions welcome.

Thanks!

解决方案

"/dev/null" <de******@BeginThread.com> wrote in message
news:upJPb.98110


Rc4.607914@attbi_s54...

I have some php-based software that I''d like to make available to some
businesses that run on my web server (apache on Linux).

These businesses have full access to all their web files. I''d like to set
up my php code in such a way that their web sites could take advantage of
the code without them being able to see or download the code.

Is the best way to do this put the code in a directory they don''t have
access to and add it to the php path?

Any other suggestions welcome.

Thanks!



Nope, if the webserver can execute it, then the webserver can dump it.

you can try this neat little tool I found on the web :)

http://www-1.gzentools.com/encoder.php

--
Mike Bradley
http://www.gzentools.com -- free online php tools


If you are looking to not spend any money, your best option is to alias the application
directory. This can be done easily in apache in their virtual host definition.
Main server w/ php scripts @ http://example.com/theapp/thefile.php
On their domain, http://theirdomain.com/theapp/thefile.php

httpd.conf (in their vhost setup)
Alias /theapp/ /home/approot/theapp/

Now you have the added benefit of sharing this application with other clients if they
can benefit from this code. Obviously you should modify the scripts so it uses some
sort of id to identify each client''s customizations...

Don''t be fooled into thinking you have to run some encoder against your scripts...

Good luck,

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
Wil Moore III, MCP Site : www.quicksitedesign.com?em
Application Developer Site : www.digitallysmooth.com?em
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
"/dev/null" <de******@BeginThread.com> wrote in message news:upJPb.98110


这篇关于使用PHP但不访问源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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