私はこのようなフォルダ構造を持っています
public_html
/images
outside
/file_uploader.php
つまり、public_html
webroot フォルダーです。
outside
webroot フォルダの外にあります。
だから、フォルダにファイルをアップロードしたい public_html/images
。
私はファイルにoutside/file_uploader.php
このコードを持っています:
move_uploaded_file(
$_FILES['img_name']['tmp_name'],
absolute/path/to/public_html/images/folder
);
しかし、これはエラー、そのUnable to access to public_html/images
フォルダーを返します。
質問: からファイルをアップロードするにはどうすればよいoutside_of_webroot_file
ですwebroot\folder
か?