Thursday, October 6, 2016

[Working Code] How to know that a file exits or not in the server using PHP

How to know that a file exits or not in the server using PHP

PHP code to confirm file in the server


<?php
$flag = false;
$file = "max.gz";
if(file_exists($file))
{
$flag = true;
}
?>

No comments:

Post a Comment