Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; thumbnail has a deprecated constructor in /home/ on line 11

Fatal error: Uncaught Error: Call to undefined function ereg_replace() in /home/ Stack trace: #0 /home/ thumbnail->thumbnail('photos/thumbs22...') #1 /home/ get_img_width('photos/thumbs22...') #2 /home/ generate_photo_album('photos', 3, 220) #3 {main} thrown in /home/ on line 18