【发布时间】:2010-07-21 04:22:00
【问题描述】:
您好,我正在构建一个基于 php 的网站,想知道是否有任何方法可以让我的客户从 word 文档(或任何 word 文件)上传他们的内容?
上传内容应替换(或添加)页面内容,以便她更新自己的内容。我知道这是某种 cms,但我不知道从哪里开始。
我目前有一个使用此代码的 article.php 页面:
<?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");
?>
$page 函数允许我链接单击时会加载的不同 html 文件。我想要做的是允许客户将她的不同文章上传/更新到网站。使其易于使用。
这里是网站的链接:here
非常感谢!
gdinari
【问题讨论】:
标签: php content-management-system upload