严重性:警告消息:ftp_chmod()[function.ftp-chmod]:权限已更改 [英] Severity: Warning Message: ftp_chmod() [function.ftp-chmod]: Permissions changed on

查看:153
本文介绍了严重性:警告消息:ftp_chmod()[function.ftp-chmod]:权限已更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了php ftp_chmod()的问题,实际上并不是这样。

I am having an issue with php ftp_chmod(), not really what is going on.

目录权限正在改变,但PHP正在抛出一个警告,基本上只是告诉我他们已经改变了。

The directory permissions are being changed, but PHP is throwing a warning essentially just telling me they were changed.

我希望这对我来说只是一个白痴时刻。下面是引发的警告,下面是代码行。

I am hoping this is just an idiot moment for me. Below is the warning that is getting thrown and below that is the line of code.

同样,权限被正确更改,只是遇到警告的问题:
$ b

Again, the permissions are being changed correctly, just having an issue with the warning being thrown:


严重性:警告

消息:ftp_chmod()[function.ftp-chmod]:权限已更改/ public_html / pathToMyDir

文件名:models / inventory_model.php
行号:63

Severity: Warning
Message: ftp_chmod() [function.ftp-chmod]: Permissions changed on /public_html/pathToMyDir
Filename: models/inventory_model.php Line Number: 63

63行如下所示:

Line 63 is below:

if (ftp_chmod($conn_id, 0777, $currentFolder.$imgName) !== false) {
    echo "chmoded successfully to 0777\n";
} else {
    echo "could not chmod \n";
}


推荐答案



You could quiet the error with:

if (@ftp_chmod($conn_id, 0777, $currentFolder.$imgName) !== false) {

这篇关于严重性:警告消息:ftp_chmod()[function.ftp-chmod]:权限已更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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