-
February 7th, 2003, 07:34 PM
#1
Member
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
-
February 7th, 2003, 07:43 PM
#2
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...
-
February 7th, 2003, 07:47 PM
#3
Member
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
-
February 17th, 2003, 08:16 PM
#4
Member
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
-
Forum Rules
|
|