Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to use filesize() function in php ?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 114
    Comment on it

    Hi Reader's,
    Welcome to FindNerd, today we are going to discuss how to use filesize() function in php ?

    The filesize() function basically is used for returning the size of the specified file.
    filesize() function returns the file size in bytes when function on success or FALSE on failure.

    syntax of filesize() function

      filesize(filename)
    

    filename is a required parameter

    you can take reference of below example

    <?php
    //call here filesize() and print  size of file
    echo filesize("file.txt");
    ?>
    

    The output of the code above will be:

    27
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: