imap_fetchbody
string imap_fetchbody ( int imap_stream, int msg_number, string part_number, flags [flags] );
返回信息内的某一主体区段。
imap_fetchstructure
array imap_fetchstructure ( int imap_stream, int msg_number );
返回信息的结构。
imap_getmailboxes
object imap_getmailboxes ( int imap_stream, string ref, string pattern );
获取全部信件的详细信息。
imap_getsubscribed
array imap_getsubscribed ( int imap_stream, string ref, sring pattern );
列出所有订阅的电子邮件邮箱。
imap_listmailbox
array imap_listmailbox ( int stream_id, string ref, string pattern );
以数组返回所有邮件邮箱名称。
imap_listsubscribed
array imap_listsubscribed ( int stream_id, string ref, string pattern );
列举所有订阅的邮箱。
imap_mail_copy
int imap_mail_copy ( int imap_stream, string msglist, string mbox, int [flags] );
将信息列表里的信息复制到邮箱里。
imap_mail_move
int imap_mail_move ( int imap_stream, string msglist, string mbox );
将信息列表里的信息移至邮箱里。
imap_msgno
int imap_msgno ( int imap_stream, int uid );
列出代号为UID的连续信件。
imap_num_msg
int imap_num_msg ( int imap_stream );
返回邮箱里的信息总数。
imap_num_recent
int imap_num_recent ( int imap_stream );
返回邮箱里新信息的数目。
imap_renamemailbox
int imap_renamemailbox ( int imap_stream, string old_mbox, string new_mbox );
改变邮件邮箱的名称。
imap_rfc822_write_address
string imap_rfc822_write_address ( string mailbox, string host, string personal );
将电子邮件地址标准化。
imap_rfc822_parse_adrlist
object imap_rfc822_parse_adrlist ( string address, string default_host );
分析电子邮件地址。
imap_scanmailbox
array imap_scanmailbox ( int imap_stream, string ref, string pattern, string content );
查找信件有无特定字符串。
imap_search
array imap_search ( int imap_stream, string criteria, int flags );
返回符合搜索条件的信件。
imap_setflag_full
int imap_setflag_full ( int imap_stream, string sequence, string flag, int [options] );
设置信件标志。
imap_clearflag_full
imap_clearflag_full ( int imap_stream, string sequence, string flag, int [options] );
清除信件标志。
imap_sort
array imap_sort ( int imap_stream, int criteria, int reverse, int [options] );
排序信件标题。
imap_status
object imap_status ( int imap_stream, string mailbox, int options );
返回指定邮箱的状态信息。
imap_subscribe
int imap_subscribe ( int imap_stream, string mbox );
订阅邮件邮箱。
imap_unsubscribe
int imap_unsubscribe ( int imap_stream, string mbox );
取消订阅的邮件邮箱。
imap_uid
string imap_uid ( string mailbox, int msgno );
返回邮件信息的UID值。
LDAP Functions
ldap_connect
int ldap_connect ( string [hostname], int [port] );
建立与LDAP服务器之间的连接。
ldap_bind
boolean ldap_bind ( int handle, string [bind_rdn], string [bind_password] );
建立与LDAP服务器连接的访问权限。
ldap_close
boolean ldap_close ( int handle );
关闭与LDAP服务器的连接。
ldap_unbind
boolean ldap_unbind ( int handle );
结束与LDAP服务器的连接。
ldap_add
boolean ldap_add ( int handle, string dn, array entry );
添加LDAP目录中的数据。
ldap_delete
boolean ldap_celete ( int handle, string dn );
删除指定的数据。
ldap_mod_add
boolean ldap_mod_add ( int handle, string dn, array entry );
增加LDAP目录的属性。
ldap_mod_del
boolean ldap_mod_del ( int handle, string dn, array entry );
删除LDAP目录的属性。
ldap_mod_replace
boolean ldap_mod_replace ( int handle, string dn, array entry );
以新的LDAP目录属性取代旧属性。
ldap_modify
boolean ldap_modify ( int handle, string dn, array entry );
修改LDAP目录的属性。
ldap_search
int ldap_search ( int handle, string base_dn, string filter, array [attributes] );
返回LDAP目录的搜索ID。
ldap_count_entries
int ldap_count_entries ( int handle, int result_identifier );
返回搜索结果当中的数据项数目。
ldap_get_entries
array ldap_get_entries ( int handle, int result_identifier );
获取全部返回数据的属性和值。
ldap_first_entry
int ldap_first_entry ( int handle, int result_icentifier );
获取第一条数据的代号。
ldap_next_entry
int ldap_next_entry ( int handle, int result_entry_identifier );
获取返回数据的下一条数据代号。
ldap_get_attributes
array ldap_get_attributes ( int handle, int result_entry_identifier );
获取返回数据的属性。
ldap_first_attributes
string ldap_first_attribute ( int handle, int result_entry_identifier, int ber_identifier );
获取第一条数据的属性。
ldap_next_attributes
string ldap_next_attribute ( int handle, int result_entry_identifier, int ber_identifier );
获取返回数据的下一条数据属性。
ldap_get_values
array ldap_get_values ( int handle, int result_entry_identifier, string attribute );
获取全部返回数据的属性值。
ldap_get_dn
string ldap_get_dn ( int handle, int result_entry_identifier );
获取DN值。
ldap_read
int ldap_read ( int handle, string base_dn, string filter, array [attributes] );
获取目录中的某一条数据属性。
ldap_dn2ufn
string ldap_dn2ufn ( string dn );
将dn转成易识别的UFN格式。
ldap_explode_dn
array ldap_explode_dn ( string dn, int attrib );
分解DN字段。
ldap_list
int ldap_list ( int handle, string base_dn, string filter, array [attributes] );
列出LDAP简表。
ldap_free_result
int ldap_free_result ( int result_identifier );
释放返回数据的内存。
Mail Functions
boolean mail ( string to, string subject, string message, string [additional_headers] );
发出电子邮件。
Mathematical Functions
Abs
mixed abs ( mixed number );
获取绝对值。
Acos
float acos ( float arg );
获取反余弦值。
Cos
float cos ( float arg );
余弦计算。
Asin
float asin ( float arg );
获取反正弦值。
Sin
float sin ( float arg );
正弦计算。
Atan
float atan ( float arg );
获取反正切值。
Atan2
float stan2 ( float y, float x );
计算两个数的反正切值。
Tan
float tan ( float arg );
三角函数:正切计算。
base_convert
string base_convert ( string number, int frombase, int tobase );
转换数字的进位制,包括三十六进制。
BinDec
int bindec ( string binary_string );
二进制转成十进制。
DecBin
int decbin ( int number );
十进制转为二进制。
DecHex
string dechex ( int number );
十进制转十六进制。
HexDec
int hexdec ( string hex_string );
十六进制转十进制。
DecOct
string decoct ( int number );
十进制转八进制。
OctDec
string octdec ( int number );
八进制转十进制。
Ceil
int ceil ( float number );
计算大于指定数的最小整数。
Floor
int floor ( float number );
计算小于指定数的最大整数。
round
double round ( double val );
四舍五入。
srand
void srand ( int seed );
设置随机数种子(Seed)。
rand
int rand ( [int min], [int max] );
获取随机数值。
getrandmax
int getrandmax ( void );
随机数的最大值。
mt_srand
void mt_sard ( int seed );
设置随机数种子。
mt_rand
int mt_rand ( [int min], [int max] );
获取随机数值。
mt_getrandmax
int mt_getrandmax ( void );
随机数的最大值。
Exp
float exp ( float reg );
自然对数e的次方值。
Log
float log ( float arg );
自然对数值。
Log10
float log10 ( float arg );
10为底的对数值。
max
mixed max ( mixed arg1, mixed arg2 … mixed argn );
获取最大值。
min
mixed min ( mixed arg1, mixed arg2 … mixed argn );
获取最小值。
number_format
string number_format ( float number, int [decimals], string [dec_point], string [thousands_sep] );
格式化数字字符串。
pi
double pi ( void );
常数:圆周率。
pow
float pow ( float base, float exp );
计算次方(平方)。
Sqrt
float sqrt ( float arg );
开平方根。
MySQL Functions
mysql_connect
int mysql_connect ( string [hostname], [:port][/part_to_socket], string [username], string [password] );
建立与MySQL服务器的连接。
mysql_pconnect
int mysql_pconnect ( string [hostname], [:port], string [username], string [password] );
建立与MySQL服务器的长期连接。
mysql_close
int mysql_close ( int [link_identifier] );
关闭与MySQL服务器的连接。
mysql_create_db
int mysql_create_db ( string database name, int [link_identifier] );
建立一个新的MySQL数据库。
mysql_list_dbs
int mysql_list_dbs ( int [link_identifier] );
返回MySQL服务器上可用的数据库。
mysql_drop_db
int mysql_drop_db ( string database_name, int [link_identifier] );
删除一个MySQL数据库。
mysql_select_db
int mysql_select_db ( string databse_name, int [link_identifier] );
选择一个MySQL数据库。
mysql_query
int mysql_query ( string query, int [link_identifier] );
送出一个query字符串到MySQL服务器并执行。
mysql_db_query
int mysql_db_query ( string database, string query, int [link_identifier] );
将查询的字符串传送至MySQL数据库。
mysql_list_tables
int mysql_list_tables ( string database, int [link_identifier] );
列出指定数据库的表(table)。
mysql_tablename
string mysql_tablename ( int result, int i );
获取表名称。
mysql_num_fields
int mysql_num_fields ( int result );
返回表字段的数目。
mysql_num_rows
int mysql_num_rows ( int result );
返回表行的数目。
mysql_list_fields
int mysql_list_fields ( string database_name, string table_name, int [link_identifier] );
列出指定表的字段(fields)。
mysql_field_table
string mysql_field_table ( int result, int field_offset );
返回目前表的名称。
mysql_field_flags
string mysql_field_flags ( int result, int field_offset );
返回目前字段的标志。
mysql_field_len
int mysql_field_len ( int result, int field_offset );
返回目前字段的长度。
mysql_field_name
string mysql_field_name ( int result, int field_index );
返回指定的字段名称。
mysql_field_type
string mysql_field_type ( int result, int field_offset );
返回目前数据字段的类型。
mysql_affected_rows
int mysql_affected_rows ( int [link_identifier] );
获取受MySQL上次操作所影响的行数目。
mysql_fetch_field
object mysql_fetch_field ( int result, int [field_offset] );
返回数据库的字段信息。
mysql_fetch_row
array mysql_fetch_row ( int result );
以数组返回结果ID中的下一行数据。
mysql_fetch_lengths
array mysql_fetch_lengths ( int result );
返回最后一行数据的字段长度。
mysql_insert_id
int mysql_insert_id ( int [link_identifier] );
返回最后一次使用INSERT命令的ID。
mysql_field_seek
int mysql_field_seek ( int result, int field_offset );
设置数据库的字段指针。
mysql_data_seek
int mysql_data_seek ( int result_identifier, int row_number );
设置在MySQL数据库的行指针位置。
mysql_errno
int mysql_errno ( int [link_identifier] );
返回错误信息代码。
mysql_error
string mysql_error ( int [link_identifier] );
返回错误信息。
mysql_fetch_array
array mysql_fetch_array ( int result, int [result_typ] );
返回数组类型的数据内容。
mysql_fetch_object
object mysql_fetch_object ( int result, int [result_typ] );
返回数据库对象数据。
mysql_free_result
boolean mysql_free_result ( int result );
释放占用的内存。
mysql_result
int mysql_result ( int result, int row, mixed field );
获取查询(query)的结果。
Network Functions
checkdnsrr
int checkdnsrr ( string host, string [type] );
搜索host的域名记录。
closelog
int closelog ( void );
关闭系统日志。
debugger_on
int debugger_on ( string address );
打开远程服务器测试功能。
debugger_off
int debugger_off ( void );
关闭远程服务器测试功能。
fsockopen
int fsockopen ( string hostname, int port, int [errno], string [errstr], int [timeout] );
打开网络Socket连接。
gethostbyaddr
string gethostbyaddr ( string ip_address );
返回机器名称。
gethostbyname
string gethostbyname ( string hostname );
返回IP地址。
gethostbynamel
array gethostbynamel ( string hostname );
以数组返回IP网址。
getmxrr
int getmxrr ( string hostname, array mxhosts, array [weight] );
判断MX记录是否完全符合。
openlog
int openlog ( string ident, int option, int facility );
打开系统日志。
pfsockopen
int pfsockopen ( string hostname, int port, int [errno], string [errstr], int [timeout] );
打开网络的Socket持续连接。
set_socket_blocking
int set_socket_blocking ( int socket descriptor, int mode );
切换“搁置/无搁置”模式。
syslog
int syslog ( int priority, string message );
产生一个系统日志信息。
ODBC Functions
odbc_connect
int odbc_connect ( string dsn, string user, string password, int [cursor_type] );
与ODBC数据库连接。
odbc_pconnect
int odbc_pconnect ( string dsn, string user, string password, int [cursor_type] );
建立一个长期的ODBC数据库连接。
odbc_autocommit
int odbc_autocommit ( int connection_id, int [OnOff] );
开关ODBC自动更新功能。
odbc_binmode
int odbc_binmode ( int result_id, int mode );
设置二进制处理模式。
odbc_close
void odbc_close ( int connection_id );
关闭单一ODBC连接。
odbc_close_all
void odbc_close_all ( void );
关闭所有ODBC连接。
odbc_commit
int odbc_commit ( int connection_id );
改变ODBC数据库。
odbc_cursor
string odbc_dursor ( int result_id );
获取光标名称。
odbc_do
int odbc_do ( int connection_id, string query );
准备并执行SQL命令查询。
odbc_exec
int odbc_exec ( int connection_id, string query );
准备并执行SQL命令查询。
odbc_prepare
int odbc_prepare ( int connection_id, string query_string );
SQL数据库准备命令。
odbc_execute
int odbc_execute ( int result_id, array [parameters_array] );
执行一个准备好的SQL命令查询。
odbc_fetch_into
int odbc_fetch_into ( int result_id, int [rownumber], array result_array );
返回指定的查询行。
odbc_fetch_row
int odbc_fetch_row ( int result_id, int [row_number] );
返回查询结果的行。
odbc_field_len
int odbc_field_len ( int result_id, int field_number );
返回该字段的数据长度。
odbc_field_name
string odbc_filename ( int result_id, int field_number );
获取字段名称。
odbc_field_type
string odbc_field_type ( int result_id, int field_number );
返回该字段的数据类型。
odbc_result
string odbc_result ( int result_id, mixed field );
返回查询的结果。
odbc_free_result
int odbc_free_result ( int result_id );
释放己经返回数据的内存。
odbc_longreadlen
int odbc_longreadlen ( int result_id, int length );
返回字段的最大值。
odbc_num_fields
int odbc_num_fields ( int result_id );
返回数据字段的数目。
odbc_num_rows
int odbc_num_rows ( int result_id );
返回数据库里的“行”数。
odbc_result_all
int odbc_result_all ( int result_id, string [format] );
返回查询结果的HTNL表格。
odbc_rollback
int odbc_rollback ( int connection_id );
取消目前的查询工作。
odbc_setoption
int odbc_setoption ( int id, int function, int option, int param );
调整ODBC的设置值。
PHP Options And Information
error_log
int error_log ( string message, int message_type, string [destination], string [extra_headers] );
将PHP的错误信息传递至指定的位置。
error_reporting
int error_reporting ( int [level] );
设置错误信息执行的等级。
getenv
string getenv ( string varname );
返回目前的系统环境变量。
getlastmod
int getlastmod ( void );
返回最后一次网页更新的时间。
getmyinode
int getmyinode ( void );
返回PHP Script的inode。
getmypid
int getmypid ( void );
返回目前网页处理程序的ID。
getmyuid
int getmyuid ( void );
返回PHP Script所有者的UID值。
getrusage
array getrusage ( int [who] );
返回系统的资源损耗率。
get_cfg_var
string get_cfg_var ( string varname );
返回PHP的设置选项。
get_current_user
string get_current_user ( void );
返回PHP Script的所有者名称。
get_magic_quotes_gpc
long get_magic_quotes_gpc ( void );
返回系统magic_quotes_gpc的设置值。
get_magic_quotes_runtime
long get_magic_quotes_runtime ( void );
返回目前magic_quotes_runtime的值。
phpinfo
int phpinfo ( void );
显示PHP服务器状态。
phpversion
string phpversion ( void );
返回PHP版本。
putenv
void putenv ( string setting );
设置PHP系统环境变量。
set_magic_quotes_runtime
long set_magic_quotes_runtime ( int new_setting );
启动或暂停magic_quotes_rungime。
set_time_limit
void set_time_limit ( int seconds );
设置PHP Script可执行的最大时间长度。
Program Excution Functions
escapeshellcmd
string escapeshellcmd ( string command );
删除字符串里的特殊符号。