DOM-XML issue of PHP

I use a package to generor the rss feed, but it show the message as below.

Warning: require_once(class.DomDocument.inc.php) [function.require-once]: failed to open stream: No such file or directory in…

The it will show me the fatal erro, It could not load file ‘class.DomDocument.inc.php’.
But the file does not include in the package.
And I could run these file in another server, so I guest the question made from a addon of php.

I modify the code to get the debug message:
class.RSSItemList.inc.php
class.ObjectList.inc.php
class.RSSItem.inc.php
class.RSS_V_200.inc.php
class.RSS_V_abstract.inc.php
class.DomDocument.inc.php <—-it does not include this file in the package.

I research the data in the google, someone says that , it need the libxml2 library.
But in the default ver. of apache in the linux platform, it include already.
And I research the others file about the XML and DOM.
Finaly, I got the answer, It need php-domxml addon.
Just install it through yum, and don’t forget restart apache.
Let the apache reload the php.ini , and it will load the addon for php.

command as below.
yum install php-domxml
service httpd restart

The XML Element of Yahoo Search API.

I worte a php function to split the xml return of yahoo search api.
It will return a arry, and it’s easy use for me.
8 elements a set.The elements as below.

1.Title
2.Summary
3.Click URL(will auto redirect)
4.The site URL
5.Modify Date time(unit is second since 1970/1/1)
6.Format
7.Cache URL
8.Size

搜尋出來的結果~和在台灣搜尋出來的結果不同
不知道 在這個搜尋結果 和台灣的結果有什麼明顯的差異
另外…修改日期是秒數~拿來操作的要作轉換
但是 我不知道 實用性在哪
檔案格式[any (default), html, msword, pdf, ppt, rss, txt, xls]
可能是網頁~也有可能是doc文字檔
參數蠻多可以玩的~
可以參考原廠文件~在這裡

有問題的地方~查詢區域~沒有台灣~有泰國
代碼在這~真不知道台灣Yahoo在幹嘛

Serendipity 之功能再探

繼剛才那篇~xmlrpc API hacking之後~
寫一下 我對他現有的應用吧!
他的媒體庫存功能~
寫的蠻不錯的~
如果這個檔案是照片~或是有EXIF的檔案
他就會show出來………玩攝影的朋友~
你會知道相機、型號、光圈、快門等資料
用了這麼多個Blog系統~沒有看到一個有這樣功能的
(有的請寒扣一下)
Read more