perl/cgi, help!
Results 1 to 4 of 4

Thread: perl/cgi, help!

  1. #1
    Member
    Join Date
    Sep 2002
    Posts
    43

    Question perl/cgi, help!

    hi there,

    having a problem with xitami web server which im using to test perl scripts.
    The problem is the server will not display the page if i use the 'here document' metod.

    i.e.

    print <<"DOC";
    #
    #html goes here
    #
    DOC

    the above won't work! the strangest thing is my perl editor (dzSoft) does'nt have a problem and displays it fine. I can only get a page to work if i use the print "single line at a time"; metod, which of course would take much longer to do.

    can anyone help with this? been messing with it all day.

    -aX
    \"I can resist everything, except temptation.\" - Oscar Wilde

  2. #2
    Senior Member tampabay420's Avatar
    Join Date
    Aug 2002
    Posts
    953
    Code:
    print "Content-Type: text/html\n\n";
    add this before the HTML
    i don't know if that's the problem- but you usually need to add this...
    is xitami configured for perl script?
    hope this helps :-)

    -take it easy!
    yeah, I\'m gonna need that by friday...

  3. #3
    Member
    Join Date
    Sep 2002
    Posts
    43
    yeah, i've got that in.
    All the code seems to be fine, i've gone over it time and time again.
    I came to the conclusion it might be something to do with the web server software im using.
    coz why would it work fine one way and not the other?

    Has anyone else had this problem before??

    -aX
    \"I can resist everything, except temptation.\" - Oscar Wilde

  4. #4
    Member
    Join Date
    Jul 2002
    Posts
    46
    Don't know for sure, but do you think the quotes are throwing off your xitami server? Have you tried this method without the quotes around the filehandle?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 Security News

     Patches

       Security Trends

         How-To

           Buying Guides