PHP fclose() 函数PHP Filesystem 函数定义和用法fclose() 函数关闭一个打开文件。语法fclose(file) 参数 描述 file 必需。规定要关闭的文件。 说明file
PHP diskfreespace() 函数PHP Filesystem 函数定义和用法diskfreespace() 函数返回目录中的可用空间。该函数是 disk_free_space() 函数的别名。语法diskfreespace(director
PHP disk_total_space() 函数PHP Filesystem 函数定义和用法disk_total_space() 函数返回指定目录的磁盘总大小。语法disk_total_space(directory) 参数 描述
PHP disk_free_space() 函数PHP Filesystem 函数定义和用法disk_free_space() 函数返回目录中的可用空间语法disk_free_space(directory) 参数 描述 directory
PHP dirname() 函数PHP Filesystem 函数定义和用法dirname() 函数返回路径中的目录部分。语法dirname(path) 参数 描述 path 必需。规定要检查的路径。 说
PHP unlink() 函数PHP Filesystem 函数定义和用法unlink() 函数删除文件。若成功,则返回 true,失败则返回 false。语法unlink(filename,context) 参数 描述 file
PHP copy() 函数PHP Filesystem 函数定义和用法copy() 函数拷贝文件。语法copy(source,destination) 参数 描述 source 必需。规定要复制的文件。 des
PHP clearstatcache() 函数PHP Filesystem 函数定义和用法clearstatcache() 函数清除文件状态缓存。clearstatcache() 函数会缓存某些函数的返回信息,以便提供更高的性能。但
PHP chown() 函数PHP Filesystem 函数定义和用法chown() 函数改变指定文件的所有者。如果成功则返回 TRUE,否则返回 FALSE。语法chown(file,owner) 参数 描述 f
PHP chmod() 函数PHP Filesystem 函数定义和用法chmod() 函数改变文件模式。如果成功则返回 TRUE,否则返回 FALSE。语法chmod(file,mode) 参数 描述 file 必
PHP chgrp() 函数PHP Filesystem 函数定义和用法chgrp() 函数改变文件所属的组。如果成功则返回 TRUE,否则返回 FALSE。语法chgrp(file,group) 参数 描述 file
PHP basename() 函数PHP Filesystem 函数定义和用法basename() 函数返回路径中的文件名部分。语法basename(path,suffix) 参数 描述 path 必需。规定要检查
PHP trigger_error() 函数PHP Error 和 Logging 函数实例如果 $usernum 大于 10,触发一个错误:<?php if ($usernum>10) { trigger_error("Number cannot be larger than 1
PHP set_exception_handler() 函数PHP Error 和 Logging 函数实例设置用户定义的异常处理函数:<?php// 用户定义的异常处理函数 function myException($exception) { ech
PHP set_error_handler() 函数PHP Error 和 Logging 函数实例通过 set_error_handler() 函数设置用户自定义的错误处理程序,然后触发错误(通过 trigger_error()):<?php // 用户