How to use Filesystem filesize in PHP

In this article I am going to explain about filesize function in PHP.
  • 1128

PHP filesize() Function

The filesystem filesize function is used to get a specified  file size.

Syntax of filesize function

filesize(filename)

Parameters in filesize  function

It has only one parameter:

Parameter Description
filename It specifies the file to check.

Example of filesystem filesize function

<html>

<body>

<?php

echo filesize("C:\wamp\www\Dinesh\PhpIntro.txt");

?>

</body>

</html>


Output:

filesizefunctionphp.jpg

You may also want to read these related articles :
here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.