Hi everybody,
well I don´t want to include and use those variables or set then. I
want to read the file, parse the vars to a form, so the user can
change the system configs using the web instead of FTP...
I am thinking reading using a simple include, and then clean the file
contents and
Bruno B B Magalhães wrote:
Hi everybody,
well I don´t want to include and use those variables or set then. I
want to read the file, parse the vars to a form, so the user can change
the system configs using the web instead of FTP...
I am thinking reading using a simple include, and then
What about...
form action=saveConfig.php method=post
Database Host: input type=text name=config[database][host]
value=?=$config['database']['host']? /br /
Database User: input type=text name=config[database][user]
value=?=$config['database']['user']? /br /
!-- some more fields here --
/form
Bruno B B Magalhães wrote:
That's my problem: I have a configuration files with the following
structure...
$vars['varname'] = 'varvalue';
If you trust the config file:
?php
eval(file_get_contents('/path/to/config.file'));
?
Jasper
--
PHP General Mailing List (http://www.php.net/)
To
4 matches
Mail list logo