Hi Bruno,

On 7/12/05, Bruno B B Magalhães <[EMAIL PROTECTED]> 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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to