I have a config file which is written in PHP as below,
<?php
class WebConfig {
public static $WEBPATH = '/customers';
public static $ACCOUNTPATH = '/empaccountpath';
public static $INFO = '/accountInfo';
const ACCOUNT_STATUS = '/account_status';
const ENABLE_SEARCH = '/enable_search';
}
?>
So I would like to develop an interface in PHP, which has ability to edit the file values such as $WEBPATH
, $ACCOUNTPATH
and const
values.
Simple PHP editor script will do the above work. But it doesn't check the syntax.
Please suggest how to do it in PHP efficiently.