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.
phpを使用してフォルダを作成する方法を誰かが言うことができますか?
/ var / www / php内にフォルダを作成しようとしましたが、失敗します。なんでそうなの?
私のコードはこんな感じです
<?php $path=getcwd.'/images'; mkdir($path,777); ?>
このスクリプトのエラーは何ですか。
に間違った関数変更getcwdを使用するgetcwd()と、機能します。
getcwd
getcwd()
たぶん、フォルダのアクセス許可を確認する必要があります。lsを使用して、新しいフォルダーを作成するフォルダーのグループを確認します。また、グループへの書き込みが許可されていることを確認してください。最後に、phpスクリプトを実行するサーバーは、このグループのメンバーである必要があります。