in reply to CGI-Perl:: Location for saving the GD output

...the problem is my CGI is not able to write the graph in /var/www/html/image location.

Could you show us the part of the code that is not able to do that? What are the error messages?

  • Comment on Re: CGI-Perl:: Location for saving the GD output

Replies are listed 'Best First'.
Re^2: CGI-Perl:: Location for saving the GD output
by cool (Scribe) on Sep 10, 2006 at 08:21 UTC
    Here is the part of complete code that is of around 2000 lines.
    my $png_data = $im->png; print $query->p("$tag : Free energy curve of forward strand and shu +ffle sequence"); open (DISPLAY,">/var/www/html/upload/$tag.jpg") ||error ($query, "C +ant open GRAPH:") ; binmode DISPLAY; print DISPLAY $png_data; close DISPLAY; } print "<p> "; # print "<img src=\"http://localhost/../../../tmp/upload/$tag.jp +g\">"; # print "<img src=\"http://127.0.0.1/upload/$tag.jpg\">"; print "<img src=\"upload/$tag.jpg\">"; # print "<img src=\"http://localhost/image.jpg\"> "; print "</p>";
A reply falls below the community's threshold of quality. You may see it by logging in.