Well, as long as the file is closed (be sure to have done that), all of it's data are flushed to it.
I guess your problem might be in the create_chart function. either recheck it, or post it so we can analyze it, and steal your code.
On 4/20/06, Aram Yegenian <[EMAIL PROTECTED]> wrote:
hi all,
i have this problem i just can't put my finger on
it...
i have a function that creates a graph then saves it
to a file. although the file is created correctly, if
i try to access the file, as in the example below, i
get a "the image cannot be displayed, because it
contains errors."
i'm guessing it has something to do with buffered
output, but i'm not sure. any ideas?
-----------------------------------
<?php
$filename = 'images/' . date("Y_m_d") . ".png";
create_chart($size_x, $size_y, $units, $max_value,
$values, $title1, $title2, $filename);
?>
<img src='' />
---------------------------------
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Jordan PHP Users Group
http://php.jolug.org/
Php mailing list
[email protected]
http://mail.jolug.org/mailman/listinfo/php_jolug.org
--
Ala'a A. Ibrahim
http://www.alaa-ibrahim.info/
_______________________________________________ Jordan PHP Users Group http://php.jolug.org/ Php mailing list [email protected] http://mail.jolug.org/mailman/listinfo/php_jolug.org
