-
[2005-02-15] 一个用session实现微型购物篮的例子
采于www.PHPbuilder.com,稍作补充。代码如下。嘻嘻:)
basket.PHP:
ID Name Price
1 Mouse 25.00 ?act=add&id=1&price=25&basket=Mouse">add ?act=subtract&id=1&price=25&basket=Mouse">subtract...
-
[2005-02-15] 新闻发布系统 (例子) 二 dbconn
Open ($host, $user, $pass);
if ($db != "")
$this->SelectDB($db);
}
function Open ($host, $user, $pass) {
$this->_db_linkid = mysql_connect ($host, $user, $pass);
}
function Close () {
@mysql_free_...
-
[2005-02-15] [转]PHP也可以當成Shell Script
PHP 怎么这么红
最近 PHP(Personal Hypertext Preprocessor) 似乎已经成了这一两年来 Linux/Unix 上最广为大家所使用的网页处理语言﹐它的方便、强大功能与 OpenSource 的特性使得它正逐渐侵蚀到传统 CGI 甚至是...
-
[2005-02-15] [转]类与PHP (II)
Classes and PHP
When you create a function within a class with the same name as the class that function will execute whenever you create an object of that class. This is called a 'constructor.' It...
-
[2005-02-15] [转]类与PHP (III)
Classes and PHP
Great, now what to we do with it? I'm glad you asked. We need to create a few more functions within Style to actually accomplish anything. The first thing I'd like to do is set up ...
-
[2005-02-15] [转]类与PHP (V)
Classes and PHP
Let's do the table body now:
TDOut("Kreisler");
$Tbody->TDOut("Rod");
$Tbody->TDOut("Cortlandt");
$Tbody->TDOut("New York");
$Tbody->TDOut("USA");
?>
But this is still getting kind...
-
[2005-02-15] 一个基于mysql的登陆验证程序(一)
-
[2005-02-15] oracle database access object
Calling example:
LOGOn("www","99","corn");
###############################################
$newOda->CmdString=" update test set nouse='dfs' where login_name='guoyafeng'";
if(!$newOda->Execute()) {...
-
[2005-02-15] PHP3中使用ORACLE函数的使用说明
(作者:星空浪子 zhongcfido@126.com)
OCIDefineByName
让 SELECT 指令可使用 PHP 变数。
语法: boolean OCIDefineByName(int stmt, string ColumnName, mixed &variable, int [type]);
传回值: 布林值
函式种类:...
-
[2005-02-15] PHP新闻组
news://news.netimages.com/PHP3.general
news://202.99.104.181/CCU.Programming.PHP
news://news.webking.com.cn/软件.编程.PHP
-
[2005-02-15] 例子:用PHP实现上载任何类型的文件并可以直接显示或下载下来
我这个程序可以让你上传任何类型的文件并可以直接显示或下载下来(upload_and_show.PHP3):
file description:
file to upload/store in database:
-
[2005-02-15] 例子:php的substr函数真是强大(substr.php3)
具体的使用可以看PHP的Manual中的function.substr.HTML。
-
[2005-02-15] IMAP安装
http://www.phpchina.com/browser.asp?cmd=view&catid=51&objid=93&order=date
-
[2005-02-15] 如何将gd编译进php for Linux. gd版本1.6.1
请参考一下PHPchina.com上的几篇文章:
http://www.phpchina.com/browser.asp?cmd=ls&catid=11&order=date
-
[2005-02-15] 图片存储与浏览一例(Linux+Apache+PHP+MySQL)
http://www.phpchina.com/browser.asp?cmd=view&catid=31&objid=67&order=date
-
[2005-02-15] [转译]正则表达式的基本语法(二)
还有一个'|',表示“或”操作:
"hi|hello":表示一个字符串里有"hi"或者"hello";
"(b|cd)ef":表示"bef"或"cdef";
"(a|b)*c":表示一串"a""b"混合的字符串后面跟一个"c";
'.'可以替代任何字符:
"a.[0-9]":...
-
[2005-02-15] 用php+oracle实现分页的示例程序
-
[2005-02-15] date.inc.php3中两个函数的例程。
//下面的一段代码显示一个从今天起15天的列表
-
[2005-02-15] Linux下Oracle8i的安装(转)
oracle 8.05 的简明安装和操作说明
oralce 支持Linux 给了我们一个免费解除她的好机会,但有好多网友并非此中专业人士(就象我一样),我就把我的一些操作程序写出来,希望对大家会有所帮助。
一。安装前的准备工...
-
[2005-02-15] date.inc.php3,模拟SQLSERVER的两个函数:dateadd(),datediff()
//文件名:date.inc.PHP3
//在使用这两个函数前,要先将日期或日期时间转换成timestamp类型。
//如:
//$today=mktime(0,0,0,date("m"),date("d"),date("Y"));
/****模拟sqlserver中的dateadd函数*******
$part ...