Files
Testing/scandir.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

19 lines
367 B
PHP

<?php
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
//echo ABSPATH;
$path = ABSPATH . "/uploads_user/8000/7653";
$all = scandir($path);
$file = "50c1ac9aa4805.JPG";
$file2 = substr_replace($file,"_thumb",strpos($file, "."), 0);
$prefix = substr($file,0,strpos($file, "."));
$suffix = substr($file,strpos($file, "."));
echo $file2;
?>