While this works perfectly, looking for a way to make it a little / lot cleaner, and also to learn along the way!!! I am adding /thumbs to a directory and file string, and also adding _thumb to the end of the file name of that same string.
from this... Gallery/Test/Image/image.jpg
to this... Gallery/Test/Image/thumbs/image_thumb.jpg
but the paths can change in length depending on the directory structure, but /thumbs will always be the last directory, and _thumb will always be before the "."
$thumb_dir = substr($file, 0, strrpos($file, '/')) . '/thumbs' . substr($file, strrpos($file, '/'));
$thumbnail = substr($thumb_dir, 0, strrpos($thumb_dir, '.')) . '_thumb' . substr($thumb_dir, strrpos($thumb_dir, '.'));
Thanks