Joakim (and James too)
Thank you for your suggestion regarding the header. The php page does have
a header but in playing around with things I did get it to generate an error
message along with the "image missing X"
the message is:
Warning: Failed opening 'var/www/html/stocks/dev/graphit2.php' for inclusion
(include_path='.:/php/includes:/usr/share/php') in
/home/virtual/site201/fst/var/www/html/stocks/dev/pg3a.php on line 140
So, it appears I have work to do on figuring out the path. Again, any help
will ge greatly appreciated.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 05, 2002 3:52 AM
Subject: RE: [PHP] png image doesn't show
> Hi,
>
> Do you output the right headers before you output the imagestream?
> Header("Content-type: image/png");
>
> If this doesn't help you have to post your code (graphit.php) here so we
can
> look at it.
>
> /Joakim
>
> > -----Original Message-----
> > From: hugh danaher [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, July 05, 2002 10:05 AM
> > To: php
> > Subject: [PHP] png image doesn't show
> >
> >
> > Hello all,
> >
> > I have been trying to modify the working of one of my pages
> > which prints a png graph. What I had was an included file
> > named "graphit.php" which creates a png file. I used the function
> > imagepng($image,'temp.png') to create an image and then used
> > <img src=temp.png> to have the image printed on the page.
> > This worked well enough when only one user (me) was using the
> > page, but I want more. In reading the imagepng() info in the
> > manual, it states that I can output the raw image stream to
> > the browser by leaving off the file name option. I've done
> > this, but get nada! How should this be done?
> > One of the notes (and it's in German) implies that I can call
> > "graphit.php" using something like
> >
> > <img src=graphit.php> to get the image output.
> > Unfortunately, I get nothing except the red X indicating a
> > missing image.
> >
> > Any and all help is greatly appreciated.
> >
> > Hugh
> >
> >
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php