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


Groups > comp.lang.php > #6057

Re: reading a newline from a properties file

From taltene@gmail.com
Newsgroups comp.lang.php
Subject Re: reading a newline from a properties file
Date 2012-05-09 05:47 -0700
Organization http://groups.google.com
Message-ID <19387178.1854.1336567658358.JavaMail.geo-discussion-forums@ynja13> (permalink)
References (1 earlier) <12113687.988.1336542193956.JavaMail.geo-discussion-forums@vbpz13> <jod9bh$51c$1@dont-email.me> <jodabf$9in$1@dont-email.me> <32272.1918.1336562506765.JavaMail.geo-discussion-forums@vbq19> <87116c48-3c50-40f7-b2c5-a8638a0a4067@gn8g2000vbb.googlegroups.com>

Show all headers | View raw


בתאריך יום רביעי, 9 במאי 2012 15:26:25 UTC+3, מאת Captain Paralytic:
> On May 9, 12:21 pm, talt...@gmail.com wrote:
> > Thanks!
> > I tried to use your code.
> > But it still no good for me.
> > This is the input:
> >
> > ------------------------------------------------------------
> >
> >  _resp_chargingIdx=<?xml version="1.0" encoding="UTF-8"?>
> > <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:al="http://www.alcatel-lucent.com/soap_cm" xmlns:gd="http://www.3gpp.org/ftp/Specs/archive/32_series/32317/schema/32317-70..." xmlns:bs="http://www.3gpp.org/ftp/Specs/archive/32_series/32607/schema/32607-70..." xmlns:bd="http://www.3gpp.org/ftp/Specs/archive/32_series/32607/schema/32607-70...">
> > .<SOAP-ENV:Body>
> > ..<bd:createMOResponse>
> > ...<mO>
> > ....<moiLocation>imsServiceProfileId=1,suMSubscriptionProfileId=1,suMSubscr iberProfileId=+14716000005_at,subscriptionFunctionId=1,managedElementId=HSS 1</moiLocation>
> > ...</mO>
> > ..</bd:createMOResponse>
> > .</SOAP-ENV:Body>
> > </SOAP-ENV:Envelope>
> >
> > ------------------------------------------------------------
> > and this is what print_r($pros) retruns:
> > ------------------------------------------------------------
> >
> >  [_resp_chargingIdx] => <?xml version=\"1.0\" encoding=\"UTF-8\"?>
> >     [<SOAP-ENV:Envelope xmlns:SOAP-ENV] => \"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:al=\"http://www.alcatel-lucent.com/soap_cm\" xmlns:gd=\"http://www.3gpp.org/ftp/Specs/archive/32_series/32317/schema/32317-70..." xmlns:bs=\"http://www.3gpp.org/ftp/Specs/archive/32_series/32607/schema/32607-70..." xmlns:bd=\"http://www.3gpp.org/ftp/Specs/archive/32_series/32607/schema/32607-70...">
> >     [....<moiLocation>imsServiceProfileId] => 1,suMSubscriptionProfileId=1,suMSubscriberProfileId=+14716000005_at,subscri ptionFunctionId=1,managedElementId=HSS1</moiLocation>
> > -------------------------------------
> >
> > and of course the only key is _resp_chargingIdx...
> >
> > any help will be appreciated.
> > Thanks!!!
> 
> Where did $pros come from? Can you show us the code you use to get the
> variable $pros?

Sorry, it's a spelling mistake..
It is props and it is from the code Alvaro supplied:


$props = parse_ini_file($prop_file, FALSE, INI_SCANNER_RAW); 
return array_key_exists($prop_key, $props) ? trim($props[$prop_key]) : FALSE; 

Back to comp.lang.php | Previous | Next — Previous 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