Darbas su failais

Darbo su failu funkcija Aprašymas
basename()Grąžina failo pavadinimą iš nurodyto adreso.
chgrpChanges file group
chmodPakeičiamas failo priėjimas atitinkamiems vartotojams
chownChanges file owner
clearstatcacheClears file status cache
copyCopies file
deleteSee unlink() or unset()
dirname()Returns directory name component of path
disk_free_spaceReturns available space in directory
disk_total_spaceReturns the total size of a directory
diskfreespaceAlias of disk_free_space()
fcloseCloses an open file pointer
feofTests for end-of-file on a file pointer
fflushFlushes the output to a file
fgetcGets character from file pointer
fgetcsvGets line from file pointer and parse for CSV fields
fgetsGets line from file pointer
fgetssGets line from file pointer and strip HTML tags
file_existsChecks whether a file or directory exists
file_get_contentsReads entire file into a string
file_put_contentsWrite a string to a file
fileReads entire file into an array
fileatimeGets last access time of file
filectimeGets inode change time of file
filegroupGets file group
fileinodeGets file inode
filemtimeGets file modification time
fileownerGets file owner
filepermsGets file permissions
filesizeGets file size
filetypeGets file type
flockPortable advisory file locking
fnmatchMatch filename against a pattern
fopenOpens file or URL
fpassthruOutput all remaining data on a file pointer
fputcsvFormat line as CSV and write to file pointer
fputsAlias of fwrite()
freadBinary-safe file read
fscanfParses input from a file according to a format
fseekSeeks on a file pointer
fstatGets information about a file using an open file pointer
ftellTells file pointer read/write position
ftruncateTruncates a file to a given length
fwriteBinary-safe file write
globFind pathnames matching a pattern
is_dirTells whether the filename is a directory
is_executableTells whether the filename is executable
is_fileTells whether the filename is a regular file
is_linkTells whether the filename is a symbolic link
is_readableTells whether the filename is readable
is_uploaded_fileTells whether the file was uploaded via HTTP POST
is_writable Nurodoma ar failas įrašomas ar ne.
is_writeableAlias of is_writable
lchgrpChanges group ownership of symlink
lchownChanges user ownership of symlink
linkCreate a hard link
linkinfoGets information about a link
lstatGives information about a file or symbolic link
mkdirMakes directory
move_uploaded_fileMoves an uploaded file to a new location
parse_ini_fileParse a configuration file
pathinfoReturns information about a file path
pcloseCloses process file pointer
popenOpens process file pointer
readfileOutputs a file
readlinkReturns the target of a symbolic link
realpathReturns canonicalized absolute pathname
renameRenames a file or directory
rewindRewind the position of a file pointer
rmdirRemoves directory
set_file_bufferAlias of stream_set_write_buffer()
statGives information about a file
symlinkCreates a symbolic link
tempnamCreate file with unique file name
tmpfileCreates a temporary file
touchSets access and modification time of file
umaskChanges the current umask
unlink()Deletes a file