PHP Base Library Documentation, Release phplib_7_2
Boris Erdmann, boris@erdmann.com, Kristian
Koehntopp, kk@netuse.de and Sascha Schumann,
sascha@schumann.cx
$Id: documentation.sgml,v 1.1 2001/08/13 12:30:06
richardarcher Exp $
____________________________________________________________
Table of Contents
1. Quick Start
1.1 License
1.2 Target Group and Prerequisites
1.3 Quick Guide to Installation
1.4 Using core features of PHPLIB
1.5 Testing
2. Overview and Installation
2.1 Files, classes and functions
2.1.1 Customization
2.1.2 Core functionality
2.1.3 Extended functionality
2.1.4 HTML widgets
2.2 Downloading and unpacking the distribution
2.3 Requirements and things to check for
2.3.1 Interpreter requirements
2.3.2 Database requirements
2.3.3 Name space requirements
2.3.4 Year 2000 compliance statement
2.4 Installation procedure
2.5 Using include() instead of auto_prepend_file=
2.6 PHPLIB with mod_php (Apache module)
3. Core Functionality
3.1 DB_Sql
3.1.1 Instance variables
3.1.2 Instance methods
3.1.2.1 Accessible instance methods
3.1.2.2 Internal instance methods
3.1.3 Example
3.1.4 Additional information about database connections
3.1.5 Using nextid()
3.2 Page Management
3.2.1 Accessible Functions
3.2.2 Example
3.2.3 The "cart" feature is gone
3.3 CT_Sql
3.3.1 Instance variables
3.3.2 Example
3.4 CT_Split_Sql
3.4.1 Instance variables
3.4.2 Example
3.5 CT_Shm
3.5.1 Instance variables
3.5.2 Example
3.6 CT_Dbm
3.6.1 Instance variables
3.6.2 Example
3.7 CT_Ldap
3.7.1 Instance variables
3.7.2 Example
3.8 Session
3.8.1 Instance variables
3.8.2 Instance methods
3.8.2.1 Accessible instance methods
3.8.2.2 Internal instance methods
3.8.3 Example
3.8.4 Using "auto_init"
3.8.5 Unregistering variables and deleting sessions
3.8.6 Reading and understanding session data for debugging
3.8.7 How "serialize()" operates
3.9 Auth
3.9.1 Instance variables
3.9.2 Instance methods
3.9.2.1 Accessible instance methods
3.9.2.2 Internal instance methods
3.9.3 Example
3.9.4 Using default authentication
3.9.5 Using Challenge-Response Authentication
3.9.6 The complete guide to authentication and user variables
3.9.6.1 How is the Auth class used usually?
3.9.6.2 How does $auth work internally?
3.9.6.3 How do $sess and $auth interact?
3.9.6.4 Where is the beef?
3.9.6.5 I still do not understand! What am I supposed to code?
3.9.6.6 Ok, I did that and it works. I even understood it. Now, what exactly is that uid used for?
3.9.6.7 But is the uid used internally by PHPLIB?
3.10 Perm
3.10.1 Instance variables
3.10.2 Instance methods
3.10.2.1 Accessible instance methods
3.10.2.2 Internal instance methods
3.10.3 Example
3.10.4 How permissions work
3.11 User
3.11.1 Instance variables
3.11.2 Instance methods
3.11.2.1 Accessible instance methods
3.11.2.2 Internal instance methods
3.11.3 Example
4. Extended functionality
4.1 Cart
4.1.1 Instance variables
4.1.2 Instance methods
4.1.2.1 Accessible instance methods
4.1.3 Example
4.1.4 On using Cart
4.2 Template
4.2.1 Instance variables
4.2.2 Instance methods
4.2.2.1 Accessible instance methods
4.2.2.2 Internal instance methods
4.2.3 Example
5. HTML Widgets Classes
5.1 Sql_Query
5.1.1 Instance variables
5.1.2 Instance methods
5.1.2.1 Accessible instance methods
5.1.2.2 Internal instance methods
5.1.3 Example
5.2 Table and CSV_Table
5.2.1 Instance variables
5.2.2 Instance methods
5.2.2.1 High-level instance methods
5.2.2.2 Mid-level instance methods
5.2.2.3 Low-level instance methods
5.2.3 Example
5.3 Menu
5.3.1 Instance variables
5.3.2 Instance methods
5.3.2.1 Accessible instance methods
5.3.2.2 Internal instance methods
5.3.3 Example
5.4 Form
5.4.1 Using OOH Forms
5.4.2 Customizing OOH Forms
5.5 tpl_form
5.5.1 Instance variables
5.5.2 Instance methods
5.5.2.1 Accessible instance methods
5.5.2.2 Internal instance methods
5.5.3 Example
5.6 Tree
5.6.1 Instance variables
5.6.2 Instance methods
5.6.2.1 Accessible instance methods
5.6.3 The Tree Array
5.6.4 Example
5.6.5 Known Bugs / Tips
5.7 STRINGS2 function set
6. Acknowledgments
______________________________________________________________________
[1m1. Quick Start[0m
The Quick Start chapter tries to give you a ten-minute introduction to
PHPLIB installation, outlines a few simple testing procedures and
closes with an overview of PHPLIB features.
[1m1.1. License[0m
PHPLIB consists of the files in this directory and all its
subdirectories. It is made available as free software under the
LIBRARY GNU General Public license, as spelled out in the file COPYING
in this directory. Also, it is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license
for more details.
[1m1.2. Target Group and Prerequisites[0m
PHPLIB targets the PHP application developer. You need to have good
knowledge of the PHP language, at least basic SQL database knowhow and
at least basic knowledge on how to operate your web server to be able
to use the library.
The library will help you to write medium to large sized data-driven
web applications. "Medium to large sized applications" are
applications that consist of multiple database queries, have to
generate tables from database data, need a user interface that
generates SQL queries or need a comfortable and user-friendly way to
protect pages or functionality on pages. "Data-driven" applications
are applications that make use of a supported SQL-database to create
HTML content and that use HTML forms to drive database transactions.
To make use of the library you obviously need access to a web server
with a working installation of a current PHP interpreter (we recommend
3.0.12 or newer for this release of the library) and access to a
supported SQL database (currently, PHPLIB supports MySQL, PostgreSQL,
mSQL, Oracle 7 and Oracle 8, Sybase, Microsoft SQL Server and ODBC
databases). You need to be able to create and drop database tables in
that database and your web server must be able to execute SELECT,
INSERT, UPDATE and DELETE statements on these tables.
Throughout this manual, we assume that you are using the MySQL
database server. PHPLIB will run with any supported SQL server, but we
are using MySQL in the development of PHPLIB.
PHPLIB can be used in conjunction with the CGI version of PHP and with
mod_php, integrated into Apache. Usage of the CGI version has an
impact on overall speed, because you cannot take advantage of
persistent database connection. We recommend the Apache module over
the CGI version, although we personally use the CGI version for
various reasons (easier to update and can be run with Apache suexec).
PHP 4 is still in beta. We do not support deployment of this library
with beta software.
[1m1.3. Quick Guide to Installation[0m
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
【项目资源】:包含前端、后端、移动开发、操作系统、人工智能、物联网、信息化管理、数据库、硬件开发、大数据、课程资源、音视频、网站开发等各种技术项目的源码。包括STM32、ESP8266、PHP、QT、Linux、iOS、C++、Java、python、web、C#、EDA、proteus、RTOS等项目的源码。【项目质量】:所有源码都经过严格测试,可以直接运行。功能在确认正常工作后才上传。【适用人群】:适用于希望学习不同技术领域的小白或进阶学习者。可作为毕设项目、课程设计、大作业、工程实训或初期项目立项。【附加价值】:项目具有较高的学习借鉴价值,也可直接拿来修改复刻。对于有一定基础或热衷于研究的人来说,可以在这些基础代码上进行修改和扩展,实现其他功能。【沟通交流】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。鼓励下载和使用,并欢迎大家互相学习,共同进步。
资源推荐
资源详情
资源评论
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![application/x-gzip](https://img-home.csdnimg.cn/images/20210720083646.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![py](https://img-home.csdnimg.cn/images/20210720083646.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
共 172 条
- 1
- 2
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/d28ac9b54fe948548c78a7d8383e66a3_qq_34910341.jpg!1)
CrMylive.
- 粉丝: 8754
- 资源: 4万+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)