1 2 > 下一頁 | 最後一頁 1/2
目前分類: News    檢視方式: 列表 摘要
窮人的GPS數位相片
ezgod2 在天空部落發表於23:37:19 | News

窮人的GPS數位相片
http://tw.myblog.yahoo.com/ian_yang_freemen/article?mid=1918&prev=1924&l=a&fid=8


今天踩到狗便便
ezgod2 在天空部落發表於18:49:57 | News


觀看全文...
test
ezgod2 在天空部落發表於15:28:05 | News

提昇曝光率加入了加權的功能
ezgod2 在天空部落發表於20:23:22 | News
<?php
// ad.php
putenv("ORACLE_SID=WWW"
);
putenv("NLS_LANG=american_taiwan.zht16big5"
);
putenv("ORACLE_HOME=/home/oracle/product/7.3.2"
);
putenv("LD_LIBRARY_PATH=/home/oracle/product/7.3.2/lib"
);
putenv("ORA_NLS=/home/oracle/product/7.3.2/ocommon/nls/admin/data"
);
putenv("ORA_NLS32=/home/oracle/product/7.3.2/ocommon/nls/admin/data"
);

$handle=ora_logon("user38@WWW","iam3849"
) or die;
$cursor=ora_open($handle
);
ora_commitoff($handle
);

$query="SELECT url, banner, alt, priority FROM ad where priority > 0"
;
ora_parse($cursor$query
) or die;
ora_exec($cursor
);
$i=$pricount=0
;
while(
ora_fetch($cursor
)) {
  
$ad[$i][0] = ora_getcolumn($cursor,0
);
  
$ad[$i][1] = ora_getcolumn($cursor,1
);
  
$ad[$i][2] = ora_getcolumn($cursor,2
);
  
$ad[$i][3] = ora_getcolumn($cursor,3
);
  
$pricount += $ad[$i][3
];
  
$i
++;
};

ora_close($cursor
);
ora_logoff($handle
);

srand((double)microtime()*1000000
);
$pri rand(1,$pricount
);
$pricount=0
;
for(
$i=0$i<count($ad); $i
++) {
  
$pricount += $ad[$i][3
];
  if (
$pri <= $pricount
) {
    
$ad1[]="<a href=".$ad[$i][0]." target=new><img src=/ad/".$ad[$i][1]." width=468 height=60 border=0 alt=\"".$ad[$i][2]."\"></a>"
;
  }
}
echo 
$ad1[0
];

?>

1 2 > 下一頁 | 最後一頁 1/2
系統公告
個人檔案
個人圖檔
ID:ezgod2
暱稱:Nigo
地區:金門縣

文章分類
ezgod2的最新的回應
  • 目前沒有留言
好時光貼曆
人氣指數
當日人次:
累積人次:
我推薦誰
誰推薦我
目前無名單
誰來我家
RSS 訂閱
贊助商
其它資訊
本部落所刊登之內容,皆由作者個人所提供,不代表 yam 天空 本身立場。
POWERED BY
POWERED BY 天空部落
會員登入免費註冊