Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #5855

reading a newline from a properties file

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
From taltene@gmail.com
Newsgroups comp.lang.php
Subject reading a newline from a properties file
Date Tue, 8 May 2012 07:21:46 -0700 (PDT)
Organization http://groups.google.com
Lines 25
Message-ID <20447277.1852.1336486906498.JavaMail.geo-discussion-forums@ynff7> (permalink)
NNTP-Posting-Host 192.118.118.1
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace posting.google.com 1336486906 458 127.0.0.1 (8 May 2012 14:21:46 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Tue, 8 May 2012 14:21:46 +0000 (UTC)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=192.118.118.1; posting-account=_miomwkAAAA9hXFuZ0DItllzeQn_XS40
User-Agent G2/1.0
Xref csiph.com comp.lang.php:5855

Show key headers only | View raw


Hi all.

 I need to write an HTTP response string in a properties file and read from a PHP file.

 For example:

 My_Response=HTTP/1.1 200 OK

 Server: gSOAP/2.7\

 Content-Type: text/xml; charset\=utf-8

 (etc.)

 Everything I tried failed: adding \n and \r\n inside the response line, writing the lines in seperate lines.

 When using one line with the formatting chars I always see those characters and not a real carrige return as I want.

 When I write the response in multiple lines, I only get the first line in response.

 I also added \ at the end of each line.

Can you help please?

Thanks!

Back to comp.lang.php | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

reading a newline from a properties file taltene@gmail.com - 2012-05-08 07:21 -0700
  Re: reading a newline from a properties file The Natural Philosopher <tnp@invalid.invalid> - 2012-05-08 15:42 +0100
  Re: reading a newline from a properties file "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2012-05-08 16:53 +0200
  Re: reading a newline from a properties file "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-05-08 18:52 +0200
  Re: reading a newline from a properties file Denis McMahon <denismfmcmahon@gmail.com> - 2012-05-08 17:33 +0000
  Re: reading a newline from a properties file taltene@gmail.com - 2012-05-08 22:43 -0700
    Re: reading a newline from a properties file "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-05-09 09:50 +0200
    Re: reading a newline from a properties file "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2012-05-09 10:20 +0200
      Re: reading a newline from a properties file "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2012-05-09 10:37 +0200
        Re: reading a newline from a properties file taltene@gmail.com - 2012-05-09 04:21 -0700
          Re: reading a newline from a properties file Jerry Stuckle <jstucklex@attglobal.net> - 2012-05-09 10:33 -0400
            Re: reading a newline from a properties file taltene@gmail.com - 2012-05-09 22:56 -0700
              Re: reading a newline from a properties file Jerry Stuckle <jstucklex@attglobal.net> - 2012-05-15 07:49 -0400
          Re: reading a newline from a properties file Captain Paralytic <paul_lautman@yahoo.com> - 2012-05-09 05:26 -0700
            Re: reading a newline from a properties file taltene@gmail.com - 2012-05-09 05:47 -0700

csiph-web