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.
unlink() 関数を使用してサーバーから別の php ファイルを削除したい:
unlink('../classes/methods.class.php');
しかし、パーミッション拒否の警告が表示されます。そのファイルにchmod 777を作成しましたが
chmod-ファイルまたはディレクトリの権限を変更しようとします。
ファイルの所有者ではないため、ファイルをchmodすること(PHPを介して許可を変更しようとした場合)またはリンクを解除することはおそらく許可されていません。許可だけでなく、ファイルの所有権についても確認してください。