Files
Testing/scandir.php

19 lines
367 B
PHP
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
<?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;
?>