圖片連結廣告大概是最為常用的網路廣告模式,但是多條廣告的動態隨機顯示可不是那麼簡單的事情。PHP的檔案上傳函數提供了在這塊468x60像素的地區(網頁廣告的標準尺寸)實現能夠根據權值大小而隨機顯示廣告的解決方案,從而避免了開發FTP程式或是ASP和Perl CAI中需要外掛擴充才能實現此項功能的弊端。 本例在PHP4+MySQL+Apache for
現在我們來講一下reply.php的代碼: --------------------------------- //reply.php <? function check_strlen_long($txt) { $len=strlen($txt); $count=0; for ($i=0;$i<$len;$i++) { if (ord($txt[$i])<128) { $count=$count+1;} if (ord($txt[$i])==10 or
<html><body><table border=1> <? $id=@mssql_connect("ddy","sa"," ") or die("串連不上"); $db=mssql_select_db("ddy",$id); $query="select * from lr00 order by lr0012 desc"; $result=mssql_query($query); if($result): if($tt==""){ $nopa=0;}
上一次我們研究了guest.php檔案.具體的問題還要求讀者朋友自己深入的去實踐,而且需要一些工具書來學習,如果您一點php的知識都沒有,筆者奉勸您就不要想下看了,筆者沒有太多的時間和篇幅去逐句探究一個php檔案的用途和意義.好的,接下來我們來作edit.php這個檔案. ----------- //edit.php <? if ($Submit) { if ($SavePassword=="on")
This module uses the functions of the ZZIPlib library by Guido Draheim to transparently read ZIP compressed archives and the files inside them. 這個模組使用 ZZIPlib 庫(Guido Draheim)來讀取 ZIP 壓縮文檔和裡面的檔案Please note that ZZIPlib only provides a subset of
<?php $key = "This is supposed to be a secret key !!!"; function keyED($txt,$encrypt_key) { $encrypt_key = md5($encrypt_key); $ctr=0; $tmp = ""; for ($i=0;$i<strlen($txt);$i++) { if ($ctr==strlen($encrypt_key)) $ctr=0; $tmp.= substr($