HI I'm building a php based website and wanted to know if there any way to allow my client to upload their content from a word document (or any word file)?
The upload should replace (or add) content to a page, allowing her to update her content. I know this is some sort of cms, but I don't know where to begin.
I currently have an article.php page that uses this code:
<?php
$thisPage="Writing";
include("header.php");
$page = $_GET['article'];
$file = "articles/".$page.".html";
if(file_exists($file)) {
include($file);
} else {
print "404 Error. Page does not exist";
}
function IsSafeInclude($x) {
if(strpos($x, "/../") !== false || strpos($x, "../") === 0 || strpos($x, "/..") == (strlen($x) - 3) || $x == '..')
return false;
else
return true;
}
include("html/articles-left.html");
include("footer.php");
?>
The $page function allows me to link different html files that would load when clicked. What I want to do is allow the client to upload/update her different articles to the site. Make it easy to use.
Here is the link to the site: here
Thanks alot!
gdinari