Hey that function works very nice ! really reduced the number of includes, requires and require_once from my code … =) cool
As Going foward with the photo2album.net code, I found a problem that was how to feedback the end user (you !) of what image is been add to the pdf. This was a problem because for each photo it ws taking like 1sec, so for 60 you have a minute of white screen … this is not good. =)
So I changed to have the list of the images at the page, and one by one I send to the server the images list, and give the feedback to you of what image is add to the pdf.
Off course to make this work, all the processed images are stored at the session … and probably because I´m starting the session before everything (even before loading the need classes) I was having the following error :
Fatal error: main() [function.main]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "FPDF" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition ...
argh !! nasty error ! but now I´m following the instructions … let´s see what happens with the autoload() stuff
by the way, this is the doc of autoload() http://www.php.net/autoload
