ok PHP heads, I need some advice on this.
I am after adding new products to the database and also have some discontinued cause they are not available anymore.
To delete those products in one shot is easy through php, but i'll be left with a lot of images on the server that i don't use anymore.
in the database i have the path to both sized images (small, large), so by looping through them, i can get the path for it but i need to delete those from folders before the record itself.
any example or good reading material?
I am after adding new products to the database and also have some discontinued cause they are not available anymore.
To delete those products in one shot is easy through php, but i'll be left with a lot of images on the server that i don't use anymore.
in the database i have the path to both sized images (small, large), so by looping through them, i can get the path for it but i need to delete those from folders before the record itself.
any example or good reading material?