framework/functionfile.func.php

[WeEngine System] Copyright (c) 2014 WE7.CC WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.

Functions

file_write()

file_write(  $filename,   $data) 

Parameters

$filename
$data

file_read()

file_read(  $filename) 

Parameters

$filename

file_move()

file_move(  $filename,   $dest) 

Parameters

$filename
$dest

file_tree()

file_tree(  $path,   $include = array()) 

Parameters

$path
$include

file_tree_limit()

file_tree_limit(  $path,   $limit,   $acquired_files_count) 

Parameters

$path
$limit
$acquired_files_count

file_dir_exist_image()

file_dir_exist_image(  $path) 

Parameters

$path

mkdirs()

mkdirs(  $path) 

Parameters

$path

file_copy()

file_copy(  $src,   $des,   $filter) 

Parameters

$src
$des
$filter

rmdirs()

rmdirs(  $path,   $clean = false) 

Parameters

$path
$clean

file_upload()

file_upload(  $file,   $type = 'image',   $name = '',   $compress = false) 

Parameters

$file
$type
$name
$compress

file_wechat_upload()

file_wechat_upload(  $file,   $type = 'image',   $name = '') 

Parameters

$file
$type
$name

file_remote_upload()

file_remote_upload(  $filename,   $auto_delete_local = true) 

Parameters

$filename
$auto_delete_local

file_dir_remote_upload()

file_dir_remote_upload(  $dir_path,   $limit = 50) 

Parameters

$dir_path
$limit

file_random_name()

file_random_name(  $dir,   $ext) 

Parameters

$dir
$ext

file_delete()

file_delete(  $file) 

Parameters

$file

file_remote_delete()

file_remote_delete(  $file) 

Parameters

$file

file_image_thumb()

file_image_thumb(  $srcfile,   $desfile = '',   $width) 

Parameters

$srcfile
$desfile
$width

file_image_crop()

file_image_crop(  $src,   $desfile,   $width = 400,   $height = 300,   $position = 1) 

Parameters

$src
$desfile
$width
$height
$position

file_lists()

file_lists(  $filepath,   $subdir = 1,   $ex = '',   $isdir,   $md5,   $enforcement) 

Parameters

$filepath
$subdir
$ex
$isdir
$md5
$enforcement

file_remote_attach_fetch()

file_remote_attach_fetch(  $url,   $limit,   $path = '') 

Parameters

$url
$limit
$path

file_media_content_type()

file_media_content_type(  $url) 

Parameters

$url

file_allowed_media()

file_allowed_media(  $type) 

Parameters

$type

file_is_image()

file_is_image(  $url) 

Parameters

$url

file_image_type_map()

file_image_type_map() 

file_image_quality()

file_image_quality(  $src,   $to_path,   $ext) 

Parameters

$src
$to_path
$ext

file_is_uni_attach()

file_is_uni_attach(  $file) 

Parameters

$file

file_check_uni_space()

file_check_uni_space(  $file) 

Parameters

$file

file_change_uni_attchsize()

file_change_uni_attchsize(  $file,   $is_add = true) 

Parameters

$file
$is_add