CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Generating images in more detail

 



husbil
Deleted

Feb 16, 2001, 10:09 AM

Post #1 of 2 (154 views)
Generating images in more detail Can't Post

I wrote that I had a Perl problem, but I did not explain my self good enough.
So her is the problem again in more detail. I want a Perl script to generate a html page.
I do this by printing the cod of a html page. A simplifyed example:

#I have perl on my computer
#!c:\program\perl\bin\perl

print "Content-type: text/html\n\n";

print<<END;

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF">
<img src="Test.gif" width="114" height="100">
</body>
</html>

END
exit;

This work, but the images on the generated html
page doesn't show. I have the images in the right folder,
so that's not a problem.
What is the problem? Anybody?




SirAnvil
Deleted

Feb 16, 2001, 1:58 PM

Post #2 of 2 (151 views)
Re: Generating images in more detail [In reply to] Can't Post

I did a direct cut and past of your code on my server and run it. The only thing I changed of course was the location of my perl interpreter (sp) and the name of the .gif to cgrbanner.jpg. It worked perfect. I'm running this on a Linux/Unix system so I'm not sure what the problem is. Can you run it from the command line? If so, does it just spit out a bunch of HTML looking tags (as it should)?

SirAnvil
www.christiangamers.org

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives