first of all you dont need to steal it from me, coz i got the code from andi gutmans' book http://www.phptr.com/title/013147149X
"Well, as long as the file is closed" how do i make
sure of this, and yes i did attach the code for
everyone to see. i'm thinking "ob_start,ob_end_flush"?
is that correct?
thanx...
--- Ala'a Ibrahim <[EMAIL PROTECTED]> wrote:
> 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='<?php echo "$filename"?>' />
> > ---------------------------------
> >
> > __________________________________________________
> > 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
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
create_graph.php
Description: 531839092-create_graph.php
image6.php
Description: 1429563598-image6.php
_______________________________________________ Jordan PHP Users Group http://php.jolug.org/ Php mailing list [email protected] http://mail.jolug.org/mailman/listinfo/php_jolug.org
