Re: How can I tell if an output stream is finished?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Al wrote:
I have a page that resizes an image to be included in a html page, using:

echo "<img src=\"$rel_mapfile\"  alt=\"Course Map\">\n";

unlink($rel_mapfile);

I need the other html stuff on the page so I need to fetch a file from the server to include in the page.

So, I resized the image and saved it as a file.  That works fine.

After sending the temporary resized file I want to delete it.

Obviously, an unlink($rel_mapfile) is executed before the echo "<img src=\"$rel_mapfile\" ... is finished.

Thanks....
Use flush();

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux