IT入门 > 教程 > php教程 >

  • copy()

    日期:2019-12-10 17:14:20 点击:372 好评:0

    copy() 函数用于拷贝文件,如果成功则返回 TRUE,失败则返回 FALSE。 语法: bool copy( string file, string newfile ) 例子: ?phpif (copy('test.txt', 'test.txt.bak')) { echo "文件拷贝成功";} else { echo "文件拷...

  • is_writable()

    日期:2019-12-10 16:56:02 点击:351 好评:0

    is_writable() 函数用于检查文件是否可写入,如果文件存在并且可写则返回 TRUE,否则返回 FALSE。 语法: bool is_writable( string filename ) filename 参数可以是一个允许进行是否可写检查的目录名...

  • is_readable()

    日期:2019-12-10 16:54:21 点击:446 好评:0

    is_readable() 函数用于检查文件是否可读, is_writable() 函数用于检查文件是否可写入, is_executable() 函数用于检查文件是否可执行。 is_readable() is_readable() 函数用于检查文件是否可读,指定...

  • ile_exists()

    日期:2019-12-10 16:53:29 点击:416 好评:0

    file_exists() 函数用于检查一个文件或目录是否存在。 file_exists() file_exists() 函数检查文件或目录是否存在,成功返回 TRUE,否则返回 FALSE 。 语法: bool file_exists( string filename ) 例子: ?p...

  • file()

    日期:2019-12-10 16:52:53 点击:313 好评:0

    file() 函数用于把 整个文件 读入一个数组中,数组中的每个单元都是文件中相应的一行,包括换行符在内。成功返回一个数组,失败则返回 FALSE。 语法: array file( string filename ) 例子:...

  • ile_get_contents()

    日期:2019-12-10 16:52:11 点击:410 好评:0

    file_get_contents() 函数用于把 整个文件 读入一个字符串,成功返回一个字符串,失败则返回 FALSE。 语法: string file_get_contents( string filename [, int offset [, int maxlen]] ) 参数说明: 参数 说明...

  • fgetc()

    日期:2019-12-10 16:51:36 点击:394 好评:0

    fgetc() 函数用于 逐字 读取文件数据,直到文件结束。 语法: string fgetc( resource handle ) 例子: ?php$fh = @fopen("test.txt","r") or die("打开 test.txt 文件出错!");if($fh){ while(!feof($fh)) { echo fgetc($f...

  • fgets()

    日期:2019-12-10 16:50:48 点击:283 好评:0

    fgets() 函数用于从文件中读取 一行 数据,并将文件指针指向下一行。 提示:如果想在读取的时候去掉文件中的 HTML 标记,请使用 fgetss() 函数。 语法: string fgets( int handle [, int length]...

  • fread()

    日期:2019-12-10 16:50:14 点击:252 好评:0

    fread()、fgets()、fgetc()、file_get_contents() 与 file() 函数用于从文件中读取内容。 fread() fread() 函数用于读取文件(可安全用于二进制文件)。 语法: string fread( int handle, int length ) fread() 从文...

  • file_put_contents()

    日期:2019-12-10 16:48:59 点击:364 好评:0

    PHP file_put_contents() 函数是一次性向文件写入字符串或追加字符串内容的最合适选择。 file_put_contents() file_put_contents() 函数用于把字符串写入文件,成功返回写入到文件内数据的字节数,...

广告位API接口通信错误,查看德得广告获取帮助