English 中文(简体)
PHP文档无法书写:如果需要ch、ch或ch,如何通过php检查
原标题:PHP file is not writeable: how to check via php if chmod, chown or chgrp is required

当我安装的文字确认档案(博客档案)不令人信服时:

 is_writable( myerror.log );

我想表明如何解决这一问题的“保险”(软件管理)。 男孩不是每个“软件管理”都很熟练:

Show messages: I want to show to the software admin that he should set the owner of the file to the user the webserver runs with if user / group of the file are different to the webservers user / group (I do not want to suggest to make it world writable).

如果网络服务器用户或组群适合文档用户或组群,我想显示软件管理应当运行。


背景 我认识到,我的沥滤过程在9x www-data和1x根基下进行。 如果我听说,

$scriptRunnerUserId = getmyuid();
$scriptRunnerGroupId = getmygid();

我将每人获得0,即“root”和“root”。 但是,如果我拥有所有权人=“root”和集团=“root”的档案,而且有6 064份档案仍然伪造。 只有当我确定6 0666(可以书写世界)。 如果我确定所有权人=“www-data”和chmod 0644,那是可悲的。 手段:不退还预期价值。

A case of "developer not well skilled"? ;-) (if possible I do not want to make exec() calls)

:没有把我称为“我”——“我们是一个虚拟机器”。

最佳回答

假设你重新开始使用PPOSIX系统(如果你有根基用户,这很可能是真实的),你可能会尝试像C-geteuid这样的东西,以找到有效的用户。

问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签