Bukowski has asked for the wisdom of the Perl Monks concerning the following question:
A friend and I are struggling to get this little segment of code to work. Basically all we are doing is generating some graphics on the fly from a MySQL database and displaying them on a webpage.
The problem is that this section of code does NOT display the generated image - but if we set the img src to a previously generated image it will happily display that.
The image itself is generated fine - but why can't we get the new one to display?
if(param("submit")) { $start=param("start"); $finish=param("finish"); if(!defined($child_pid=fork())) { die "cannot fork $!"; } elsif($child_pid==0) { my $query= "/usr/apache/cgi-bin/order/ldasdump.pl -png + -d dicty chr5.1:$s tart,$finish --user xxxx --pass xxxxxxxxx > /usr/apache/htdocs/nob24.p +ng"; exec($query); } else { waitpid($child_pid,0); print img({src=>"../../nob24.png",align=>'LEFT'});
Bukowski - aka Dan (dcs@black.hole-in-the.net)
"Coffee for the mind, Pizza for the body, Sushi for the soul"
-Userfriendly
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Images built on the fly do not display
by FamousLongAgo (Friar) on Jan 07, 2003 at 17:41 UTC | |
|
Re: Images built on the fly do not display
by dws (Chancellor) on Jan 07, 2003 at 18:26 UTC | |
|
Re: Images built on the fly do not display
by nedals (Deacon) on Jan 07, 2003 at 20:04 UTC | |
|
Re: Images built on the fly do not display
by bart (Canon) on Jan 08, 2003 at 00:23 UTC | |
by Anonymous Monk on Jan 08, 2003 at 11:41 UTC | |
by dws (Chancellor) on Jan 08, 2003 at 11:53 UTC | |
by bart (Canon) on Jan 08, 2003 at 12:02 UTC | |
by nosbod (Scribe) on Jan 08, 2003 at 13:50 UTC | |
by nosbod (Scribe) on Jan 08, 2003 at 12:57 UTC |