It takes a very long time to display the page (abbot 5 minutes) and then i get this error in the apache log
[Thu Jul 29 11:22:25 2010] [error] [client 184.108.40.206] PHP Warning: readfile(http://www.suimpal.com/gallery2/mediaBlock.php?g2_itemId=15&mode=dynamic&g2_view=dynamicalbum.RandomAlbum&limit=11&useThumb=1&column=4&useMicro=40): failed to open stream: Operation timed out in /Library/WebServer/Documents/index.php on line 110
Whitout using "@readfile" and using "readfile" y get this error
[Thu Jul 29 10:59:20 2010] [error] [client 220.127.116.11] PHP Notice: Undefined index: imageblock in /Library/WebServer/Documents/gallery2/mediaBlock.php on line 645
Works for me.
Your php is missing something else, but it escapes me right now. I know we had this discussion in these and/or gallery forums before. Some users resorted to using cURL and I also have a mediaBlockIncludes, and a jQueryMediaBlock (which may be too much).