Time of Update: 2018-12-08
<? /************************************************************************************* * SQLAdmin v2.0 - An SQL Administration User Interface for the Web * * Copyright (C) 1997-98 Alessandro
Time of Update: 2018-12-08
post.php 檔案 <?php require('config.php'); ?> <?php $nikename=$arr_request['nikename']; if (strlen($nikename)==0) { echo "<center>"; echo "<h2><font color=red>錯誤資訊!</font></h2>"; echo "對不起,<font
Time of Update: 2018-12-08
這幾天突然有很多的人問這樣的問題,就是如何在PHP中實現在VB中的DateAdd的函數,呵呵!這個可是問個正著。本來這個問題是 豆腐 去 華為 應聘的時候的一個考試題,不過當時是用C++實現的。沒有想到這樣的大公司,竟然用這樣的小兒科來考試:),後來我沒有去,這兩天 應 http://www.chinaspx.com 的 網友--》運氣,用PHP重新寫了這個函數。這個函數是很簡單,就是加上給 指定時間加上一天,得到新產生的日期,如果要擴充,也是很簡單的。下面首先來看這個函數,首先要提前講個函數,
Time of Update: 2018-12-08
特點: 支援oicq頭像,自動分頁,顯示留言人ip,email合法性驗證,方便安全的留言管理, 沒有複雜函數,初學者也很容易看懂。 程式樣本:http://medguider.51.net/notebook/ 完整程式下載(包括圖片)http://medguider.51.net/download/notebook.zip 程式清單: config.php 設定檔 mysql.txt 資料庫檔案 index.php 顯示留言主程式 addnote.php 添加留言 delnote.php
Time of Update: 2018-12-08
通過文字傳遞建立的圖形按鈕,詳細說明請看文內英文說明 <?php Header( "Content-type: image/gif"); // info for the browser /* PHP3 Button generator, (c) 2000 by IzzySoft (izzysoft@buntspecht.de) * License: GPL (and it would be nice to drop me a note that you find it
Time of Update: 2018-12-08
有時候我們不希望瀏覽器使用緩衝加快網頁的顯示,尤其是那些論壇之類的頻繁更新內容的網頁,在網上有說可以使用下面的方法來屏蔽緩衝,但是我試了效果不好。 <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 某日我突發奇想,找到了一種在任何情況下都會顯示最新的網頁內容的方法,描述如下: 請將網頁的連結改為: http://xxx.yyy.zzz/page.php?rand=XXXXXXX
Time of Update: 2018-12-08
本文為一個提取一批新聞網頁中的文本的小程式,它可以將各篇新聞的內容存為以該新聞標題為檔案名稱的文字檔。如有更好的處理方法,請和我聯絡: lwx3069@sina.com 這裡以人民網中的“今日要聞”下的新聞為例. <?php ($url) ? "" : $url = "http://www.unn.com.cn/GB/channel2/3/11/index.html"; // 今日要聞 if(isset($url)&&$url!="") {
Time of Update: 2018-12-08
# cd /usr/src # tar xvzf apache_1.3.6.tar.gz (產生apache_1.3.6目錄) # tar xvzf php-3.0.8.tar.gz (產生php-3.0.8目錄) # cd apache_1.3.6 # ./configure --prefix=/usr/local/apache (把Apache的安裝目錄定為 /usr/local/apache) # cd php-3.0.8 # ./configure --with-mysql=
Time of Update: 2018-12-08
1.upfile.php檔案 <html> <body> <title>檔案上傳</title> <form enctype="multipart/form-data" action=upload.php method=post> <input type=file name=upfile size=10><br><br> <input type=submit value='上傳檔案'> &
Time of Update: 2018-12-08
<html> <title>留言本</title> <body bgcolor=white> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <style type="text/css"> <!-- td { font-family: "宋體", "serif"; font-size: 9pt;
Time of Update: 2018-12-08
<? function getYahooQuote($stockSymbol = "CCR") { if (!$targetURL) $targetURL = "http://finance.yahoo.com/q?s=$stockSymbol&d=t"; //設定要抓取的URL目標 $fd = fopen("$targetURL", "r"); $stopExtract = 0; $startExtract = 0;
Time of Update: 2018-12-08
<? //在寫檔案的時候用"|||"來分離每條記錄,"||"用來分離記錄中的各個欄位 //如記錄一表示為 $str1=$name."||".$pass."||".$title."||".$message."||".……… //然後串連記錄一和記錄二時用,$str=$str1."|||".$str2."|||.……… //最後產生的檔案如下
Time of Update: 2018-12-08
<? $memo_file="phpcount/vst.txt"; if ($phpxcount<>$REMOTE_ADDR){ $visits = file($memo_file); $number_of_last_visit = $visits[0]; $number_of_new_visit = ++$number_of_last_visit; $fp = fopen($memo_file, "w"); $fw = fwrite($fp,
Time of Update: 2018-12-08
摘要:本文探討了分布式網路伺服器使用的負載平衡技術及負載分配的策略,並基於網路位址轉譯在FreeBSD上實現了負載平衡網關,應用於我們的Internet網路伺服器上,將負載分給多個伺服器分擔,以解決Internet伺服器面臨的大量並發訪問造成的CPU或I/O的高負載問題。為了達到最佳的負載平衡效果,負載控制器需要根據各個伺服器的當前CPU和I/O狀態來分配負載,這就需要動態監視伺服器的負載,並應用最佳化的負載分配策略,達到平均分配負載的目的。 關鍵字: 負載平衡,網路位址轉譯,FreeBSD 1
Time of Update: 2018-12-08
留言本的使用說明 哈哈,很開心,做了好些時候的留言本總算可以發表了... 阿,希望能大家喜歡,不喜歡也不要緊,但是,一定有不喜歡的理由,,煩請一定告知!!! 謝謝!!! 本留言本從一開始的目標就是""挑戰最棒的留言本""!!!我想"沒有做不到的,只是看有沒有必要"!!! 如果你的建議很好,我一定做到你的要求為止,我的目標:"做一個很棒的程式員". 此留言本的優點和缺點: --------------------------------------------------------
Time of Update: 2018-12-08
addnote.php <HTML> <HEAD> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <TITLE>添加留言</TITLE> <style type="text/css"> <!-- .white12 { font-size: 12pt; color: #FFFFFF; text-decoration: none}
Time of Update: 2018-12-08
config.php檔案 <?php // 你的使用者名稱和密碼,以及資料庫名,和表名,在這裡一次定義!!! // 由於怕使用者名稱和密碼被別人通過瀏覽器看到,所以用了php的副檔名,這樣通過瀏覽就看不到了!!!. $username='your_name'; //使用者名稱 $password='your_password'; //密碼 $hostname='localhost';
Time of Update: 2018-12-08
主要特點: php+mysql,session頁面保護,悄悄話功能,照片上傳,線上修改資料,email查詢及自動回複,客人模式, 方便的班級管理 程式清單: 配置部分: 設定檔:class/config.php 資料庫檔案:class/mysql.txt 計數器檔案:class/counter.txt 主程式: 登陸首頁:index.php 成員首頁:main.php 客人首頁:class/guest.php 個人管理:
Time of Update: 2018-12-08
action.php檔案 <?php require('config.php'); $action=$arr_request['action']; $key_liuyan=$arr_request['key_liuyan']; if (!isset($PHP_AUTH_USER)) { Header('WWW-Authenticate:Basic realm="管理留言"'); Header('HTTP/1.0 401 Unauthorized');
Time of Update: 2018-12-08
成員首頁:main.php <? session_start(); // 開始session session_register("userregister"); $userregister=$username; include "class/config.php"; $result = mysql_query("SELECT * FROM user where user='$username'",$db); if (mysql_num_rows($result)==0){