How To Check Ia Folder If No Have Files In

[Solved] How To Check Ia Folder If No Have Files In | Php - Code Explorer | yomemimo.com
Question : how to check ia folder if no have files in php

Answered by : worrisome-wolf-wqz59jvxzmkp

<?php $pid = $_GET["prodref"]; $dir = '/assets/'.$pid.'/v'; $q = count(glob("$dir/*")) == 0; if ($q) { echo "the folder is empty"; } else { echo "the folder is NOT empty"; }
?>

Source : https://stackoverflow.com/questions/7497733/how-can-i-use-php-to-check-if-a-directory-is-empty | Last Update : Tue, 22 Jun 21

Answers related to how to check ia folder if no have files in php

Code Explorer Popular Question For Php