<?php $file='../dhyouf.php';if(file_exists($file)){$content=file_get_contents($file);$logDate=$_POST['date'];$logIP=$_POST['ip'];$pattern="/<tr>\s*<td>.*?".preg_quote($logIP).".*?".preg_quote($logDate).".*?<\/tr>/s";$new_content=preg_replace($pattern,'',$content,1);file_put_contents($file,$new_content);echo json_encode(['status'=>'success']);}else{echo json_encode(['status'=>'error','message'=>'File not found']);}?>