echo getcwd();
$imageDirectory = ' /domains/exemple.ru/public_html/mega1/f/images';
if (is_dir($imageDirectory)) {
if ($files = glob($imageDirectory.'/*.png')) {
foreach ($files as $file) {
if (!unlink($file)){
die('Can\'t delete file');
}
}
} else {
die('Files not found');
}
} else {
die('Directory not exists');
}
if (is_dir($imageDirectory)) {
if ($files = glob($imageDirectory.'/*.png')) {
foreach ($files as $file) {
if (!unlink($file)){
die('Can\'t delete file');
}
}
} else {
die('Files not found');
}
} else {
die('Directory not exists');
}
$imageDirectory = ' /domains/exemple.ru/public_html/mega1/f/images';
if (is_dir($imageDirectory))
foreach (glob($imageDirectory.'/*.png') as $file)
unlink($file);
RewriteEngine On
RewriteRule ^dir1/?$ /tmp/dir1/file1.php [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^dir1/file1.php$ /tmp/file1.php [L]
<div class="wrapper">
<div class="header">Header</div>
<div class="content">List</div>
</div>