[ Date Index ]
[ Thread Index ]
[ <= Previous by date /
thread ]
[ Next by date /
thread => ]
Re: [LUG] Parsing INI files
- To: list@xxxxxxxxxxxxx
- Subject: Re: [LUG] Parsing INI files
- From: Kai Hendry <hendry@xxxxxxxxxxxxxxxx>
- Date: Mon, 1 Oct 2012 15:44:41 +0100
- Delivered-to: dclug@xxxxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=T2ttkmeNTtUc7hPIRNqKXy2OcRxBxyE09SzcyAqaG30=; b=0aU0fvXzuG2PLpHMWK1eB8bg2z1dfsWw5sziVtj2peL4Zlmqijv1A/hwoVvM/L4QZj vqcTmn5zDaHh6ZK1a9jCjhIRtabbNyoHN7EqAHyMCNsRhh+eFbAvwLXwrJM7vz6dP6Vu SRjVmzbSWIguagovpllxJRlUeAcmzUMIHcGh7R7XhuBROr3nbOkGWkCT+zZuiTkeVkSi kHQQkpXJ1QFECsty8I6lGh7g/S70woYTZG0Ztkhz4j7T9aAggtOfuQ8t4sJeZozKZkeH vjPU8gITWK/tXR9zX/XJz8Xo4mjAwO6M9zRvEaWUKYcozTZMsqZImhW+sAXQos6evDle +E5Q==
Webconverger uses INI style configs.
See https://github.com/Webconverger/webc/blob/master/etc/webc/webc.conf
cmdline_get()
cmdline_has()
to encode args with spaces i use encodeURI, see
http://webconverger.org/touch_screen_calibration/ for an example.
This nicely works across /proc/cmdline etc
--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq