PHP Classes

Convert images

Recommend this page to a friend!

      Save and Convert Images  >  All threads  >  Convert images  >  (Un) Subscribe thread alerts  
Subject:Convert images
Summary:Standard way for breaking filepath
Messages:1
Author:Alekos Psimikakis
Date:2017-10-21 06:08:52
 

  1. Convert images   Reply   Report abuse  
Picture of Alekos Psimikakis Alekos Psimikakis - 2017-10-21 06:08:52
Hi Juan

About breaking the image filepath that I mentioned in my rating comments, there's a standard (and easier) way of doing it:
$dir = pathinfo($tgt_image,PATHINFO_DIRNAME);
$name = pathinfo($tgt_image,PATHINFO_FILENAME);
$ext = pathinfo($tgt_image,PATHINFO_EXTENSION);