在我的functions.php
我得到:
$size = getimagesize($avatarpath . "/" . $file);
$avatarpath
是$avatarpath = dirname(__FILE__)."/img/avatars";
我的结构:
functions.php(与 img 文件夹位于同一目录中)。图片/头像
functions.php , img, avatars 的 chmods 已设置为 777。
我仍然收到以下消息:
Warning: getimagesize(/home/godaddy/private_html/img/avatars/avatar_1.png): failed to open stream: Permission denied in /home/godaddy/private_html/img/avatars/functions.php on line 1337