Files
BE_CPONE/application/controllers/v1/su/Checkfolderexist.php
2026-04-27 10:26:26 +07:00

73 lines
1.4 KiB
PHP

<?php
class Checkfolderexist extends MY_Controller
{
function donow(){
$array_db = array(
'192.168.250.201',
'192.168.250.202',
'192.168.250.204',
'192.168.250.203',
'192.168.250.241',
'192.168.250.242',
'192.168.250.243',
'192.168.250.244',
'192.168.250.245',
'192.168.250.246',
'192.168.250.191',
'192.168.250.192',
'192.168.250.181',
'192.168.250.182',
'192.168.250.183',
'192.168.250.184',
'192.168.250.216',
'192.168.250.171',
'192.168.250.172',
'192.168.250.173',
'192.168.250.161',
'192.168.250.162',
'192.168.250.151',
'192.168.250.211',
'192.168.250.221',
'192.168.250.231',
'192.168.250.156',
'192.168.250.141',
'192.168.250.231',
'192.168.250.131',
'192.168.250.236',
'192.168.250.121',
'192.168.250.126',
'192.168.250.136',
'192.168.250.176',
'192.168.250.251',
'192.168.250.252',
'192.168.250.81',
'192.168.250.82',
'192.168.250.85',
'192.168.250.88'
);
foreach($array_db as $k => $v){
$filename = $v."/one-api/mockup/samplestoragev2" ;
// Remote file url
$remoteFile = $filename;
// Open file
$handle = @fopen($remoteFile, 'r');
// Check if file exists
if(!$handle){
echo 'File not found';
}else{
echo 'File exists';
}
}
}
}
?>