httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ron Wingfield" <>
Subject Re: another problem with CGI
Date Tue, 04 Jun 2002 05:57:07 GMT
Yes, you've got to remove the ^Ms from your document.  In the future, (assuming that when you
are) using ftp tools such as WS-FTP, the default is usually for binary transfer, which you
should to use for graphic images such as JPG, GIF, etc.; however, for your html text, be sure
to specify ASCII x'fer!
  ----- Original Message ----- 
  From: Matus "fantomas" Uhlar 
  Sent: Tuesday, June 04, 2002 12:42 AM
  Subject: Re: another problem with CGI

  -> There is ^M at the end of all lines.
  -> what should i do?

  fromdos "file"

  next time transfer text files using "ASCII" transfer mode.

  -> > On Mon, 3 Jun 2002, Lior Hammer wrote:
  -> > 
  -> > > i checked it, it's pointing to #!/usr/bin/perl
  -> > 
  -> > Did you transfer this from a dos/windows system?  What does
  -> > cat -v cgi-script | more
  -> > look like?  If it has funky things (^M) on the end of the lines, you
  -> > corrupted your file in transport.
  -> > 
  -> > Try deleting the top line entirely and typing it fresh.

   Matus "fantomas" Uhlar, ;
   Warning: I don't wish to receive spam to this address.
   Varovanie: Nezelam si na tuto adresu dostavat akukolvek reklamnu postu.
   Despite the cost of living, have you noticed how popular it remains? 

  To unsubscribe, e-mail:
  For additional commands, e-mail:

View raw message