Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ユーザー「apache」がディレクトリを作成するときはいつでも、phpアップロードを介して新しいファイルをそのディレクトリに追加できません。それを機能させるには、フォルダの権限を変更する必要があります。
ユーザーがファイルをアップロードし、フォルダーがphpによって自動的に作成されたときに、そのファイルが作成後にそのフォルダーに追加され、書き込み不可能なフォルダーエラーが発生しないようにするにはどうすればよいですか?
次のようなものを試してください。
mkdir($newdirectory); chmod($newdirectory, 0777);