在Linux平台設定執行時期的include路徑

使用ini_set(“include_path”,”搜尋路徑”)可以在執行時期動態設定include或require的搜尋路徑,但在windows平台和Linux平台有不一樣的設定值內容。

第一個就是路徑的表達方式,windows平台是以「磁碟機:\路徑名」這種方式來指定路徑,Linux平台則是以「/路徑名」這種方式來指定路徑。 閱讀全文〈在Linux平台設定執行時期的include路徑〉

jQuery的.children()

$(‘.selector’).children()可以得到.selector所代表dom物件的下一層子物件,而不是所有的子物件。例如:

<div class=’level-one’>

<div class=’level-two’>

<div class=’level-three’>

<input type=’text’ name=’mytext_three’ value=’my text’ size=’20’/>

</div>

</div>

<input type=’text’ name=’mytext’ value=’my test’ size=’20’/>

</div>

閱讀全文〈jQuery的.children()〉

Proudly using Dynamic Headers by Nicasio WordPress Design