[英]php client content uploads (cms)
嗨,我正在建立一個基於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文件。 我要做的是允許客戶將不同的文章上傳/更新到站點。 使其易於使用。
這是網站的鏈接: 這里
非常感謝!
gdinari
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.