This commit is contained in:
Suvodip
2024-12-20 13:04:53 +05:30
parent cbc9ce5f7b
commit e379794846
2 changed files with 5 additions and 661 deletions

View File

@@ -21,11 +21,11 @@
$totalPageContent = $headerContent . $pageContent . $footerContent;
$filePath = __DIR__ . '/' . $fileName;
// if (file_put_contents($filePath, $totalPageContent)) {
// // echo "<p class='text-success'>Page saved successfully at $filePath.</p>";
// } else {
// // echo "<p class='text-danger'>Failed to save the page.</p>";
// }
if (file_put_contents($filePath, $totalPageContent)) {
// echo "<p class='text-success'>Page saved successfully at $filePath.</p>";
} else {
// echo "<p class='text-danger'>Failed to save the page.</p>";
}
}
try {