public/images/portfolio/i-vis/1.jpg
How could i remove all the path regardless of what the filename is using php?
echo basename($string);
Take a look at the basename function.