PHP - Manual手册 - Function Reference函数参考 - Session Extensions会话扩展 - Session Handling会话操作 - Installing/Configuring安装/配置 - Runtime Configuration运行时配置 - session.save_path 定义了传递给存储处理器的参数
session.save_path string
session.save_path defines the argument which is passed to the save handler. If you choose the default files handler, this is the path where the files are created. See also session_save_path().
There is an optional N argument to this directive that determines the number of direc阅读全文>
发表于 @ 2008年07月11日 14:17:00|评论(loading...)|收藏
PHP - Manual手册 - Appendices附录 - List of Supported Protocols/Wrappers支持的协议/封装协议列表 - HTTP and HTTPS
HTTP and HTTPS
PHP 4, PHP 5, PHP 6. https:// since PHP 4.3.0
* http://example.com
* http://example.com/file.php?var1=val1&var2=val2
* http://user:password@example.com
* https://example.com
* https://example.com/file.php?var1=val1&var2=val2
* https://user:password@example.com
Allows read-only access to files/resources via HTTP 1.0, using the HTTP GET method. A H阅读全文>
发表于 @ 2008年07月11日 13:55:00|评论(loading...)|收藏
PHP - Manual手册 - Appendices附录 - php.ini directives - php.ini配置选项 - Description of core php.ini directives描述核心php.ini配置选项 - register_globals决定是否将 EGPCS(Environment,GET,POST,Cookie,Server)变量注册为全局变量
register_globals boolean
Whether or not to register the EGPCS (Environment, GET, POST, Cookie, Server) variables as global variables.
As of » PHP 4.2.0, this directive defaults to off.
Please read the security chapter on Using register_globals for related information.
Plea阅读全文>
发表于 @ 2008年07月08日 21:54:00|评论(loading...)|收藏
PHP - Manual手册 - Function Reference函数参考 - Text Processing文本处理 - Strings字符串 - String Functions字符串函数 - strip_tags字符串中去除HTML和PHP标记
strip_tags
(PHP 4, PHP 5)
strip_tags — Strip HTML and PHP tags from a string
Description
string strip_tags ( string $str [, string $allowable_tags ] )
This function tries to return a string with all HTML and PHP tags stripped from a given str . It uses the same tag stripping state machine as the fgetss() function.
Parameters
str
The inpu阅读全文>
发表于 @ 2008年07月08日 21:41:00|评论(loading...)|收藏
PHP - Manual手册 - Function Reference函数参考 - Database Extensions数据库扩展 - Vendor Specific Database Extensions特定提供商数据库扩展 - MySQL - MySQL Functions - MySQL函数 - mysql_real_escape_string转义SQL语句中使用的字符串中的特殊字符,并考虑到连接的当前字符集
mysql_real_escape_string
(PHP 4 >= 4.3.0, PHP 5, PECL mysql:1.0)
mysql_real_escape_string — Escapes special characters in a string for use in a SQL statement
Description
string mysql_real_escape_string ( string $unescaped_string [, resource $link_identifier ] )
Escapes s阅读全文>
发表于 @ 2008年07月08日 20:58:00|评论(loading...)|收藏
PHP - Manual手册 - Function Reference函数参考 - File System Related Extensions文件系统相关扩展 - Filesystem文件系统 - Filesystem Functions文件系统函数 - fscanf从文件中格式化输入
fscanf
(PHP 4 >= 4.0.1, PHP 5)
fscanf — Parses input from a file according to a format
Description
mixed fscanf ( resource $handle , string $format [, mixed &$... ] )
The function fscanf() is similar to sscanf(), but it takes its input from a file associated with handle and interprets the input according to the specified format , whi阅读全文>
发表于 @ 2008年07月07日 22:41:00|评论(loading...)|收藏
PHP - Manual手册 - Function Reference函数参考 - Variable and Type Related Extensions变量和类型相关扩展 - Arrays数组 - Array Functions数组函数 - ksort对数组按照键名排序
ksort
(PHP 4, PHP 5)
ksort — Sort an array by key
Description
bool ksort ( array &$array [, int $sort_flags ] )
Sorts an array by key, maintaining key to data correlations. This is useful mainly for associative arrays.
Parameters
array
The input array.
sort_flags
You may modify the behavior of the sort using th阅读全文>
发表于 @ 2008年07月07日 22:30:00|评论(loading...)|收藏
PHP - Manual手册 - Function Reference函数参考 - File System Related Extensions文件系统相关扩展 - Filesystem文件系统 - Filesystem Functions文件系统函数 - glob按模式获取文件名
glob
(PHP 4 >= 4.3.0, PHP 5)
glob — Find pathnames matching a pattern
Description
array glob ( string $pattern [, int $flags ] )
The glob() function searches for all the pathnames matching pattern according to the rules used by the libc glob() function, which is similar to the rules used by common shells.
Parameters
pattern
阅读全文>
发表于 @ 2008年07月07日 21:09:00|评论(loading...)|收藏
PHP - Manual手册 - Function Reference函数参考 - Other Basic Extensions其他基本扩展 - Tidy - Tidy Functions - Tidy函数
Tidy Functions
Predefined Classes
tidyNode
Methods
*
tidyNode::getParent - Returns the parent of the current node
*
tidyNode->hasChildren - Returns TRUE if the current node has children
*
tidyNode->hasSiblings - Returns TRUE if the current node has siblings
*
tidyNode->isAsp - Returns TRUE if the current node is ASP code
*
阅读全文>
发表于 @ 2008年07月07日 20:57:00|评论(loading...)|收藏
PHP - Manual手册 - Function Reference函数参考 - File System Related Extensions文件系统相关扩展 - Directories目录 - Directory Functions目录函数 - scandir列出指定路径中的文件和目录
scandir
(PHP 5)
scandir — List files and directories inside the specified path
Description
array scandir ( string $directory [, int $sorting_order [, resource $context ]] )
Returns an array of files and directories from the directory .
Parameters
directory
The directory that will be scanned.
sorting_order
阅读全文>
发表于 @ 2008年07月07日 20:23:00|评论(loading...)|收藏
PHP - Manual手册 - Function Reference函数参考 - Variable and Type Related Extensions变量和类型相关扩展 - Variable handling变量操作 - Variable handling Functions变量操作函数 - is_numeric检测变量是否为数字或数字字符串
is_numeric
(PHP 4, PHP 5)
is_numeric — Finds whether a variable is a number or a numeric string
Description
bool is_numeric ( mixed $var )
Finds whether the given variable is numeric. Numeric strings consist of optional sign, any number of digits, optional decimal part and optional exponential part. Thus 阅读全文>
发表于 @ 2008年06月21日 19:47:00|评论(loading...)|收藏
PHP - Manual手册 - Language Reference语言参考 - Variables变量 - Variable scope变量可见性
Variable scope
The scope of a variable is the context within which it is defined. For the most part all PHP variables only have a single scope. This single scope spans included and required files as well. For example:
Here the $a variable will be available within the included b.inc script. However, within user-defined functions a local function scope is introduced. Any variable used inside a function is b阅读全文>
发表于 @ 2008年06月21日 14:49:00|评论(loading...)|收藏
PHP - Manual手册 - 函数参考 - Variable 变量函数 - settype设置变量的类型
settype
(PHP 4, PHP 5)
settype — 设置变量的类型
描述
bool settype ( mixed $var , string $type )
将变量 var 的类型设置成 type 。
type 的可能值为:
* “boolean” (或为“bool”,从 PHP 4.2.0 起)
* “integer” (或为“int”,从 PHP 4.2.0 起)
* “float” (只在 PHP 4.2.0 之后可以使用,对于旧版本中使用的“double”现已停用)
* “string”
* “array”
* “object”
* “null” (从 PHP 4.2.0 起)
如果成功则返回 TRUE,失败则返回 FALSE。
Example#1 settype() 示例
参见 gettype()、类阅读全文>
发表于 @ 2008年03月22日 13:59:00|评论(loading...)|收藏
PHP - Manual手册 - 附录 - php.ini 配置选项 - php.ini 核心配置选项说明 - file_uploads
file_uploads boolean
是否允许 HTTP 文件上传。参见 upload_max_filesize,upload_tmp_dir 和 post_max_size 指令。
当使用 integer 类型时,其值以字节为度量单位。还可以用简化符号,说明见此 FAQ。
configure value
engine value
0
Off
1
On
Off
Off
On
On
off
Off
on
On
[file_uploads - 文档]
http://www.php.net/manual/zh/ini.core.php#ini.file-uploads
[PHP - 官方网站]
http://www.php.net/
[PHP - 关键词]
php
pdt
[PHP - 相关论坛]
http://php.board.newsm阅读全文>
发表于 @ 2008年03月22日 13:45:00|评论(loading...)|收藏
PHP - Manual手册 - 函数参考 - String 字符串处理函数 - explode使用一个字符串分割另一个字符串
explode
(PHP 4, PHP 5)
explode — 使用一个字符串分割另一个字符串
说明
array explode ( string $separator , string $string [, int $limit ] )
此函数返回由字符串组成的数组,每个元素都是 string 的一个子串,它们被字符串 separator 作为边界点分割出来。如果设置了 limit 参数,则返回的数组包含最多 limit 个元素,而最后那个元素将包含 string 的剩余部分。
如果 separator 为空字符串(""),explode() 将返回 FALSE。如果 separator 所包含的值在 string 中找不到,那么 explode() 将返回包含 string 单个元素的数组。
如果 limit 参数是负数,则返回除了最后的 -limit 个元素外的所有元素。此特性是 PHP 5.1.0 中阅读全文>
发表于 @ 2007年12月30日 22:26:00|评论(loading...)|收藏