mybloglog for php 重起...

Posted on 2007-06-01 12:11:15 by darkhero

昨天晚上一直再看丹尼老大的 mybloglog cache 本來一直想不透要怎麼讓他可以 cache 又可以讓使用者的瀏覽紀錄能被記錄下來。

最後終於發現,需要另外自己多放一段 script 讓使用者去連結 mybloglog 的 tracer ....

所以上次的 mybloglog cache 是可以用的..;p...

不過我這次也改了一些地方,讓所有的使用者都有辦法可以用,只要主機有支援 curl 即可,甚至不需要 wget 或是 crontab ,就算主機商把 exec, system 關掉也沒關係...

新版在同樣的位置 mybloglog_cache.tgz

安裝與使用方法如下:
1. 將mybloglog_cache.php程式中第10行的$mblID修改為你的ID
2. 將mybloglog_cache.php上傳到你放部落格程式的目錄
3. 在放部落格程式的目錄下面再建立一個名稱為tmp的目錄
4. 在要顯示MyBlogLog的位置加入下面語法
<script src="mybloglog_cache.php"></script>
<!-- 請更換 mlbID 為你的-->
<script type="text/javascript" src="http://track3.mybloglog.com/js/jsserv.php?mblID=2007051223343302"></script>

 

Tags: 電腦網路 PHP網站建構

加入書籤: 收藏這篇文章到HEMiDEMi

迴響

成功一半.. Post By Chieh at 2007-06-03 22:54:54
凱老師..我裝好之後,將程式碼放入之後...部落格看不到mybloglog,但是tmp資料夾卻有存入圖片...這是怎麼回事..?
Thanks Post By Yazerty at 2007-06-08 11:48:07
Your script is so useful :-) ! I'm using it on my website http://www.yazerty.net :-). Thanks a lot for sharing your work ! A french webmaster :). (that do not understand at all chinese :( )
Welcome Post By ㄚ凱 at 2007-06-08 12:11:33
Yazerty , ^_^...
question Post By stray2003 at 2007-06-19 13:36:18
May I ask you a question about mybloglog?
Mybloglog script/php is running in other website, then how mybloglog can get cookie?
When I did the test with iframe, e.g
<iframe src="http://mydomain.jsp">
but mydomain.jsp cannot read mydomain's cookie when iframe is put in other website.
help Post By stray2003 at 2007-06-19 13:46:28
the example part:
[iframe src="http://mydomain/test.jsp" width="500" height="400"][/iframe]
是否msn分享也可? Post By 心心 at 2007-07-11 10:25:08
如題

我要留言!

柒 加 壹拾柒 等於