Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Re: Re: Flat File Database & GD::Graph (REVISITED)

by suggus (Sexton)
on Mar 19, 2002 at 19:04 UTC ( #152814=note: print w/ replies, xml ) Need Help??

in reply to Re: Re: Flat File Database & GD::Graph (REVISITED)
in thread Flat File Database & GD::Graph (REVISITED)

Hi Tim,

Thanks for your help! When I tried it it still gave me a 500 error. I checked the code again for another hour and noticed that you commented out the:

# I don't know where you want this, but putting it # in the png doesn't seem to work :-P #print $q->header( -type => "image/png", -expires => "-1d" );
When I uncommented it, it worked fine! What was your reasoning as to why this is not needed? When I initially started this project, I took the bare sample from the CGI programming book (mouse book). It had that line of code in there so I just left it there.
Slowly but surely, I'll get down Perl like the rest of you cool cats! Thank you everyone who contributed. I've gain tons of wisdom from your help. :)
I'm always learning.

Comment on Re: Re: Re: Flat File Database & GD::Graph (REVISITED)
Download Code
Replies are listed 'Best First'.
Re: Re: Re: Re: Flat File Database & GD::Graph (REVISITED)
by tfrayner (Curate) on Mar 19, 2002 at 19:11 UTC

    I think I was misinterpreting what was to be returned by your code. I assumed it was to be a bare png file, and by examining an example of my own determined that the header was not needed. If this code snippet is used in the shell, you get just the png file. I must confess that I have no experience with CGI, and did not spot that the header might be required. Ah well, glad I could help anyway :-)


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://152814]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2015-11-29 06:45 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (748 votes), past polls