> -----Original Message-----
> From: Martin Pestun [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 24, 2002 8:54 AM
> To: [EMAIL PROTECTED]
> Subject: text problem
> 
> 
> Hi everybody
> 
> I've got text file on the local machine and Apache too.
> 
> What I don't know is how can I display this file like html 
> file using cgi.
> The file looks like:
> 
> USER   PID  PPID %CPU        TIME COMMAND
>      user 26794 26002  0.0        0:00
>      user  4687  4685  0.0        0:00 -ksh
>      user 15120 15118  0.0        0:00 -ksh
>      user 18918 18821  0.0        0:00 -ksh
>      user 21894 21885  0.0        0:00 -ksh
>      user 26719 26716  0.1        0:00 -ksh
>      user 26795 26719  0.0        0:00 -ksh
> 
> I mean that the result of this cgi program is displayed the 
> same like file
> text.

In addition to the use of <PRE> tags suggested, you can also
use a Content-type of text/plain if you want the whole page
to be plain text.

   print "Content-type: text/plain\r\n\r\n";
   print "blah blah...";
   ...

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to