error_reporting(E_ALL);
ini_set('display_errors','1');
if (file_exists('/../_config.php')) {
$f = fopen('/../_config.php', 'w') or die($php_errormsg);
fwrite($f, '<?php');
fclose($f);
}
else {
echo 'file doesnt exist';
}
戻り値: なし
_config.php ファイルを確認しましたが、空です。が含まれているはずでした<?php
。
絶対にエラーはなく、コードはまったく停止しません。
許可関連の問題ですか?私はWindows 7を使用しています。