gpt4 book ai didi

php - 警告 : preg_replace(): No ending delimiter '/' found

转载 作者:可可西里 更新时间:2023-10-31 23:06:08 28 4
gpt4 key购买 nike

<分区>

警告:preg_replace(): No ending delimiter '/' found in C:\wamp\www\upload\upload_demo.php on line 77我使用 preg_replace() 将斜杠替换为反斜杠。但它显示了上述警告。这是代码..

function del_file($file) {
$delete = @unlink($file);
clearstatcache();
if (@file_exists($file)) {
$filesys = preg_replace("/", "\\\\", $file);
$delete = @system("del $filesys");
clearstatcache();
if (@file_exists($file)) {
$delete = @chmod($file, 0775);
$delete = @unlink($file);
$delete = @system("del $filesys");
}
}

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com