newbie perl - html question

Discussion in 'Perl Misc' started by bbxrider, Oct 23, 2003.

  1. bbxrider

    bbxrider Guest

    am trying to output the first part of a web page, see
    www.job1data.com/phsheader.htm
    i've tried putting the exact html code for the above in my perl file like
    this

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

    html code here, (not enclosed in quotes)

    EndHdr

    the page kinda starts to come up but the graphics are x'd out and it seems
    to basically grind to a halt
    perl is basically working on the site see, www.job1data.com/perl1.plx
    i haven't seen anywhere where for some reason the html code is 'limited'
    when being generated from a perl script but obviously am running into some
    problem here
     
    bbxrider, Oct 23, 2003
    #1
    1. Advertising

  2. bbxrider

    tom Guest

    bbxrider (comcast.net) wrote:
    >am trying to output the first part of a web page, see
    >www.job1data.com/phsheader.htm
    >i've tried putting the exact html code for the above in my perl file like
    >this
    >
    >print "Content-type:text/html\n\n";
    >print <<EndHdr;
    >
    >html code here, (not enclosed in quotes)
    >
    >EndHdr
    >
    >the page kinda starts to come up but the graphics are x'd out and it seems


    Your perl script and images files might not in the same directory. In this
    case, you need to specify the location of your image files with an absolute
    path. For example: <img src="http://job1data.com/images/phslogo.bmp"

    >to basically grind to a halt
    >perl is basically working on the site see, www.job1data.com/perl1.plx
    >i haven't seen anywhere where for some reason the html code is 'limited'
    >when being generated from a perl script but obviously am running into some
    >problem here
    >
     
    tom, Oct 23, 2003
    #2
    1. Advertising

  3. It was a dark and stormy night, and tom managed to scribble:

    > Your perl script and images files might not in the same directory. In this
    > case, you need to specify the location of your image files with an
    > absolute path. For example: <img
    > src="http://job1data.com/images/phslogo.bmp"
    >


    Or better still
    <img src="/images/phslogo.bmp"> or
    <img src="../images/phslogo.bmp">

    gtoomey
     
    Gregory Toomey, Oct 23, 2003
    #3
  4. bbxrider

    tom Guest

    Gregory Toomey (bigpond.com) wrote:
    >It was a dark and stormy night, and tom managed to scribble:
    >
    >> Your perl script and images files might not in the same directory. In this
    >> case, you need to specify the location of your image files with an
    >> absolute path. For example: <img
    >> src="http://job1data.com/images/phslogo.bmp"
    >>

    >
    >Or better still
    ><img src="/images/phslogo.bmp"> or
    ><img src="../images/phslogo.bmp">
    >
    >gtoomey
    >


    Yes indeed your is better. However, the script used must be in the same server
    and the images directory is the one above; otherwise, the full URL is needed.

    Tom
     
    tom, Oct 23, 2003
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. dpackwood
    Replies:
    3
    Views:
    1,803
  2. Jerry C.
    Replies:
    8
    Views:
    243
    Uri Guttman
    Nov 23, 2003
  3. Charles
    Replies:
    7
    Views:
    163
    Dan Anderson
    Nov 24, 2003
  4. PerlFAQ Server

    FAQ 1.4 What are Perl 4, Perl 5, or Perl 6?

    PerlFAQ Server, Jan 23, 2011, in forum: Perl Misc
    Replies:
    0
    Views:
    304
    PerlFAQ Server
    Jan 23, 2011
  5. PerlFAQ Server
    Replies:
    0
    Views:
    688
    PerlFAQ Server
    Feb 3, 2011
Loading...

Share This Page