- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
filesize() function in PHP
The filesize() function returns the file size. It returns the file size in bytes, on success, whereas on failure, it returns FALSE.
Syntax
filesize(file_path)
Parameters
file_path − The path of the file for which the size is to be determined.
Return
The filesize() function returns the file size in bytes, on success, whereas on failure, it returns FALSE.
Example
<?php echo filesize("one.txt"); ?>
Output
40
Advertisements