我正在開發一個網頁,我接受來自用戶的輸入單詞,當用戶提交這些單詞時,我想要顯示這些單詞的定義或這些單詞的維基百科鏈接以獲得有關該單詞的更多定義 - 類似如下:PHP:單詞定義腳本?
比方說,用戶enetered 5個字:
toast, egg, beans, coffee, tea
現在我想顯示他們喜歡:
toast › slices of bread that have been toasted
egg › animal reproductive body consisting of an ovum or embryotogether with nutritive and protective envelopes
beans › a small skullcap <link to wikipedia>read more on wikipedia</link>
coffee › a beverage consisting of an infusion of ground coffee beans
tea › a beverage made by steeping tea leaves in water <link to wikipedia>read more on wikipedia</link>
對於其中對維基百科沒有冠詞的那些話,沒有維基鏈接將被顯示。
有人可以請我建議一些開源的PHP腳本或包,會爲我做這個?或者,我會很感激任何關於如何在PHP中執行此操作的建議。
我比直接從其他網站獲取數據更感興趣,因爲它將字詞定義存儲在我的數據庫中。
我使用PHP和MySQL。
這是隻適用於.NET,我需要它的PHP :( – Prashant 2009-10-21 06:41:10
目前只有幫助爲C#在該頁面上,而不是爲PHP。 – Natrium 2009-10-21 06:42:02
鏈接現在已更正 – sepehr 2009-10-21 06:44:53