Changing memory setting to show photos
Early this week I had an interesting situation whereby some of the photos in my photo gallery stopped showing and instead started showing the alternate text.
To display photos in my photo gallery I use Php's imagecreatefromjpeg gd function because that enables me to create thumbnails on the fly and then on clicking the thumbnail I get the enlarged version which I can set to whatever size fits the page.
I realised that all the photos that were not showing were from the 7.2 Megapixel camera (a Sony W55)and all the photos from the 4.0 and 5.0 Megapixel camera's were showing. To solve the problem I had to increase the 'memory_limit' setting found in the Resource Limits section of the php.ini file.
I still don't understand why the photos showed for a little while and then suddenly stopped especially as there had been no changes to the php.ini file