在老師這個(gè)index里面,表格首行設(shè)置了居中,algin="center",但是在瀏覽器打開卻沒(méi)有實(shí)現(xiàn)效果。是因?yàn)樵?XHTML 1.0 Strict DTD 中,不支持 div 元素的 align 屬性??梢允褂?CSS 代替。algin="center"換成 style="text-align:center" 就可以了。
2017-03-14
if (is_file($path.'/'.$item)){
$file['file']=$item;
echo $file['file'].' show<br>';
}else{
echo 'NOT<br>';
}
判斷不了,輸出的都是else后邊的語(yǔ)句
$file['file']=$item;
echo $file['file'].' show<br>';
}else{
echo 'NOT<br>';
}
判斷不了,輸出的都是else后邊的語(yǔ)句
2017-03-12
不是 老師不看報(bào)錯(cuò)的???好奇怪哦
//在newname這里先轉(zhuǎn)一下碼
$newname = $_REQUEST['newname'];
$newname = iconv('UTF-8', 'gb2312', $newname);
//在遍歷的時(shí)候再轉(zhuǎn)回去就可以了!
foreach ($info['file'] as $value) {
$newvalue = iconv('gb2312', 'UTF-8', $value);
$p = $path.'/'.$value;
?>
$newname = $_REQUEST['newname'];
$newname = iconv('UTF-8', 'gb2312', $newname);
//在遍歷的時(shí)候再轉(zhuǎn)回去就可以了!
foreach ($info['file'] as $value) {
$newvalue = iconv('gb2312', 'UTF-8', $value);
$p = $path.'/'.$value;
?>
2017-03-07
辣眼睛。。老師說(shuō)是女神正在聚精會(huì)神的看呢,一口老血差點(diǎn)噴出來(lái)
2017-03-06
readdir()和readDiretory()不是一個(gè)函數(shù)么,有什么區(qū)別啊,第一個(gè)dir不就是directory的意思么.
2017-03-06
大家加油,爭(zhēng)取全部學(xué)完!
@李青竹 <?php header("content-type:text/html;charset=utf-8"); ?>
2017-02-26