Re: How to read PHP variables.

From: Date: Tue, 12 Jul 2005 20:50:53 +0000
Subject: Re: How to read PHP variables.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-218583@lists.php.net to get a copy of this message
Hi Bruno, On 7/12/05, Bruno B B Magalhães <brunobbm@rio.com.br> wrote: > Hi you all! > $vars['varname'] = 'varvalue'; > > And I would like to have a module to change those parameters, but I > don't know how to write a pattern to match it... i think you mean an API to help you manage and persist your application settings (something more or less like the Preferences API in java) and your format have to be much simpler like .ini format (key = value) or some variation take a look at phpclasses.org search results for "ini" http://www.google.com/custom?domains=www.phpclasses.org&q=ini&sa=Search&sitesearch=www.phpclasses.org&client=pub-2951707118576741&forid=1&channel=5742870948&ie=ISO-8859-1&oe=ISO-8859-1&cof=GALT%3A%23663399%3BGL%3A1%3BDIV%3A%23222222%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AA3C5CC%3BLBGC%3AA3C5CC%3BALC%3A0000FF%3BLC%3A0000FF%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BLH%3A50%3BLW%3A256%3BL%3Ahttp%3A%2F%2Ffiles.phpclasses.org%2Fgraphics%2Fgooglesearch.jpg%3BS%3Ahttp%3A%2F%2Fwww.phpclasses.org%2Fsearch.html%3BFORID%3A1%3B&hl=en an alternative way is using XML to store your settings and use the PHP XML support for parsing/manipulating these files. -ahmed

« previous php.general (#218583) next »