Answer the question
In order to leave comments, you need to log in
What may not work in this function in mobile browsers and Safari?
There is such a function:
function deleteNotes() {
var deleteBtn = document.getElementById('reset_notes');
deleteBtn.addEventListener('click', function (e) {
e.preventDefault();
localStorage.clear();
location.reload();
})
}
Answer the question
In order to leave comments, you need to log in
foreach should be for tr:
<html>
<head>
<title>Парсинг...</title>
</head>
<body>
<table border="2px";>
<?php
$dir=$_POST['load'];
if (is_dir($dir)) {
foreach (glob($dir . '/*') as $file) {
?>
<tr>
<td>
<?php echo $file; ?>
</td>
<td>
<?php
$filestring = file_get_contents($file);
preg_match('~-x(.*)-c~Uis', $filestring, $result);
echo $result[1];
?>
</td>
</tr>
<?php } } ?>
</table>
</body>
</html>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question