为什么要使用PHP [英] Why to use PHP
问题描述
我已经使用PHP好几年了,但是我的高中已经获得了一个
项目,该项目最近已经建立了一个Web服务器,这个项目是
我很乐意使用PHP(和Smarty,但那是不同的
)。
唯一的问题是我需要说服
的老师
计算安装PHP是个好主意。他的主要关注点是学生能够从互联网上下载脚本,并且b $ b用它来查看其他用户的文档,窃取密码等..
关于我能告诉他的任何想法?
I have been using PHP for several years now, but I have been given a
project at my High School which has recently set up a web server, which
I would love to use PHP with (and Smarty, but that''s a different
matter).
The only problem is that I need to convince the Head Teacher of
Computing that it''s a good idea to install PHP. His main concern is
that a student will be able to download a script off the Internet and
use it to look at other user''s documents, steal passwords, etc..
Any ideas as to what I can tell him?
推荐答案
TheTeapot写道:
TheTeapot wrote:
我已经使用PHP好几年了,但我最近在我的高中获得了一个
项目设置一个网络服务器,这是我想用PHP(和Smarty,但那是不同的
)。
>
唯一的问题是我需要说服校长
计算安装PHP是个好主意。他的主要关注点是学生能够从互联网上下载脚本,并且b $ b用它来查看其他用户的文档,窃取密码等..
关于我能告诉他什么的任何想法?
I have been using PHP for several years now, but I have been given a
project at my High School which has recently set up a web server, which
I would love to use PHP with (and Smarty, but that''s a different
matter).
The only problem is that I need to convince the Head Teacher of
Computing that it''s a good idea to install PHP. His main concern is
that a student will be able to download a script off the Internet and
use it to look at other user''s documents, steal passwords, etc..
Any ideas as to what I can tell him?
告诉他了解文件权限和用户是什么。
PHP脚本作为特定用户运行(通常是apache或www-data或者没人),
因此PHP拥有该用户的权利。
因此运行PHP与在同一系统上拥有更多用户没什么不同。
如果您将文件存储在私人主目录中,并且您决定给予该文件世界读/写权限,那么任何人都可以阅读/更改它。
这是一个良好的用户管理和受过良好教育的用户。 PHP没有什么
来处理它。
给他打电话。
另外,我们的操作系统是什么谈论?一些* nix或W
Tell him to learn what file permissions and users are.
A PHP script runs as a certain user (often apache or www-data or nobody),
and thus PHP has the rights of that user.
So running PHP is no different from having more users on the same system.
If you store a file in your private home directory, and you decide to give
the world read/write permissions on that file, anybody can read/change it.
This is a matter of good usermanagement, and educated users. PHP has nothing
to do with that.
Tel him that.
Also, what OS are we talking about? Some *nix or W
?如果是后者,请不要花时间谈论安全性,补丁数量(补丁rootaccess)
for W
? If the latter, don''t
mind talking about security, the number of patches (to patch rootaccess)
for W
发布表示W
这篇关于为什么要使用PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!