關於 PHP, Linux, Open Source 及個人生活記載的網誌。
RSS icon
  • 開發 PHP5 的多工應用

    Posted on August 18th, 2007 Sam Tang 1 comment

    一直我也以為 PHP 沒有支援像 Java 或 C++ 的 threading 的功能,所以不可以寫到 multi-task (多工) 的應用程式。例如當應用程式需要擷取其他網站的內容,應用程式會延遲執行,直至完成擷取遠端的資料為止。原來現在已經可以用 stream_select 及 stream_socket_client 實現 PHP multitasking。

    這篇在 developerWorks 的文章介紹了在 PHP 的 multitasking 及 threading:

    Develop multitasking applications with PHP V5

    昨天的股市真的如坐過山車,我只在收市看見點數跌二百多點,那時以為跌得不多,誰知原來曾跌過 1285 點。無論如何,自己也沒有在這次調整估貨,反而會看看星期一有沒有買貨的機會。我的兩隻千里馬招商銀行 (3968) 及平安保險 (2318) 公佈了中期業績,也交出了理想的成績單,對於有實質盈利支持的股份,在跌市時才也會較有信心。


     

    One response to “開發 PHP5 的多工應用”

    1. PHP是不能完全支援,畢竟它還只是一個腳本程式,不能獨立運行。如果配合GTK+可能會好一些。

    Leave a reply

    *
    To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
    Click to hear an audio file of the anti-spam word