Re: GD Examples?
I'm very close to making it all come together. I'll post a sample script when it's ready.
However I have encountered a problem. My guess is the way that MivaScript is trying to change header info.
So in one file we have
In the file/function it calls, the first thing it does is set the header so the output will be evaluated as an image
The problem is that it's changing the header of the CALLING script. But since regular HTML has been output, all that is shown is a broken image icon.
If I put it all into a single file with a blank outputlevel and eval the same function it displays properly.
Am I correct in my diagnosis? And if so, is there a way around it so that the header information can be set at the function level? Or at least set for each file?
Thanks
I'm very close to making it all come together. I'll post a sample script when it's ready.
However I have encountered a problem. My guess is the way that MivaScript is trying to change header info.
So in one file we have
HTML Code:
<img src="{ [l.filename].Draw_BarChart( l.name, 150, l.array ) }" />
Code:
<MvFUNCTION NAME = "Draw_BarChart" PARAMETERS = "name, height, array" STANDARDOUTPUTLEVEL = "" ERROROUTPUTLEVEL = ""> <MvASSIGN NAME = "l.null" VALUE = "{ miva_output_header('Content-type','image/png' ) }">
If I put it all into a single file with a blank outputlevel and eval the same function it displays properly.
Am I correct in my diagnosis? And if so, is there a way around it so that the header information can be set at the function level? Or at least set for each file?
Thanks
Comment