Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. oolalaus

    How to output image from a perl script

    It worked .. it worked!! Thank you very much!! I added the "use" thing had problem again. The problem was with ftp, file was transferd from desktop to server in binary mode and some extra stuff was added after each line. Thank you.
  2. oolalaus

    How to output image from a perl script

    premature end of script headers" error, am I doing something wrong? #!/usr/bin/perl my $ua = LWP::UserAgent->new; my $response = $ua->get(’http://www.xyz.com/shop/images/full.gif’); print "Content-type: image/gif \n\n"; if ($response->is_success) { print $response->content; # or...
  3. oolalaus

    How to output image from a perl script

    Actually the file is from a different location like open FH, "www.xyz.com/shop/images/full.gif" is the code still supposed to work?
  4. oolalaus

    How to output image from a perl script

    I did something like this, but gives me "premature end of script headers" Can u help? #!/usr/bin/perl open FH, "/shop/images/full.gif" or handle_error(); print "Content-type: image/gif\n\n"; while(<FH>) { print; } close FH;
  5. oolalaus

    How to output image from a perl script

    I am working on something to show image on a html page like this <img src="http://www.mystite.com/CGI-BIN/photo.pl?photoid=100"> instead of <img src="100.gif"> Has anybody done this before? Can somebody tell me how this is done

Part and Inventory Search

Back
Top