Re: PHP 的 application 變數?
※ 引述《antontw (習慣)》之銘言:
: 最近碰過 apc 這個 lib , // 可參考前面 ajax 抓上傳進度的部份
: 不過支援的 php 版版次好像非常後面 // 5.2 以後的樣子
: 這個 lib 可以設定跨 process 的變數,
: 有點像 jsp 的 global 的意思。
: 另外,如果是你自已管的機器,
: 其實也可以試試 php 的 ipc ,
: 因為 ipc 資源蠻珍貴的,且有安全上的顧慮,
: 所以不建議後面這個方式。
查ipc/apc的路上
忽然想到
那個ramdisk直接用shm開一塊來寫就好啦........
就完全OS Independent了
/*
後記
http://tw.php.net/manual/zh/ref.shmop.php
注: Versions of Windows previous to Windows 2000 do not support shared memory.
Under Windows, Shmop will only work when PHP is running as a web server module,
such as Apache or IIS (CLI and CGI will not work).
previous to有包含2000嗎?
還是說只要NT kernel都行?
*/
看到這一篇
http://www.hoyo.idv.tw/hoyoweb/document/view.php?sid=204&author=hoyo&status=view
還不錯
但apc更為方便
http://php.net/manual/zh/function.apc-store.php
但底下也說了...他不能存array
看到上面的mixed很高興的說ˋˊ
附送的解決方案:serialize()......
--
滿天都是shm
滿地都是serialize
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 163.22.93.130
※ 編輯: buganini 來自: 163.22.93.130 (02/08 09:35)
※ 編輯: buganini 來自: 163.22.93.130 (02/08 09:35)
※ 編輯: buganini 來自: 163.22.93.130 (02/08 12:40)
→
02/08 12:42, , 1F
02/08 12:42, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 5 之 5 篇):
PHP 近期熱門文章
PTT數位生活區 即時熱門文章