html 係唔可以include, 但可以用js 寫定footer/ header (document.write()), 再用js load 入去。 唔好處 ...
093094 發表於 2013-1-20 21:10



    Why not? Search HTML .inc
Never say never pls

TOP

html 係唔可以include, 但可以用js 寫定footer/ header (document.write()), 再用js load 入去。 唔好處 ...
093094 發表於 2013-1-20 21:10


Why not?
http://www.boutell.com/newfaq/creating/include.html

e.g.
<!--#include virtual="insertthisfile.html" -->

TOP

還有 anyone know howto  define or echo  \ character in php script ?
fhleung 發表於 2013-1-23 14:50


Example:
<?php
    $var = "bar";
    echo "\\ foo bar\n<BR />";
    echo "\ foo bar\n<BR />";
    echo " $var \\ \n<BR />";
?>

TOP

想再問係 Windows 行 php fopen() function
是否冇可能?
  1. fopen($opFile,"r+")
  2. fopen($opFile,"a")
  3. fopen($opFile,"a+")
複製代碼
remark: 我用緊 Godaddy Windows hosting

TOP

回復 2# 神秘二代

師兄 我都幫公司整緊個網頁 完成95%
公司想盡量做到SEO
我一共係寫左19頁
網頁用全DIV 砌出來
每頁都包含 HEADER Menu footer
正想改用PHP require_once() 方法
減省改少少野就要COPY 19次
如果SEO 行先 係咪由得佢唔好改好過改?

TOP

回復  神秘二代

師兄 我都幫公司整緊個網頁 完成95%
公司想盡量做到SEO
我一共係寫左19頁
網頁用全DIV  ...
awinds 發表於 2013-2-5 02:03


這個沒關係...輸出至用戶時是靜態頁面就可以了(即是網址尾部不會出現.php,而是網址...xxx/information/)

TOP

本帖最後由 awinds 於 2013-2-6 01:19 編輯

回復 26# 神秘二代

咁即係Search Engin 都只係食 index.php ?
如果我個網有四個大網 係咪應該分返開佢好?
例如  abc.com/CPU
          abc.com/ram
          abc.com/HDD
各個部分都寫一個index.php
師兄有冇書或者 網站介紹一下比小弟參考下

TOP

本帖最後由 tuyylihk 於 2013-2-6 14:57 編輯

回復 22# cyrus_ho
server side做野
老實講叫唔叫做html範圍內...個人有d保留

想再問係 Windows 行 php fopen() function
是否冇可能?remark: 我用緊 Godaddy Windows hosting ...
fhleung 發表於 2013-2-4 16:11

why?

回復  神秘二代

咁即係Search Engin 都只係食 index.php ?
如果我個網有四個大網 係咪應該分返開佢好?
例 ...
awinds 發表於 2013-2-6 01:13

唔一定要
google robot.txt

TOP

提示: 作者被禁止或刪除 內容自動屏蔽

TOP

本帖最後由 fhleung 於 2013-2-6 17:52 編輯

我用緊 Godaddy Windows hosting 有 php 功能
再講係 Microsoft Windows

有些 php function 在 Windows OS 做唔到,
我請求美國Godaddy  CS/support    我請求美國Godaddy
他們說是我的問題 my own script

TOP