Is it happening always or just now and then? What if you wait a few seconds between the two calls? Do you call clearstatcache()?
I'm asking this because I once had a similar problem. My code created a file and included it right away. But sometimes (about 10%) the file was empty or incomplete. I never managed to reproduce this in a small example, only in my few 100 line script. I also noticed other people had this problem.
Jay Blanchard wrote:
[snip] fflush did not work? [/snip]
No, because the graph image was not complete before the PDF was complete. Flushing the JPG would display (if no errors occured) an partial JPG within the PDF.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php