Re: [PHP] Re: How to read PHP variables.

2005-07-15 Thread Bruno B B Magalhães
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

Re: [PHP] Re: How to read PHP variables.

2005-07-15 Thread Edward Vermillion
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

Re: [PHP] Re: How to read PHP variables.

2005-07-15 Thread André Medeiros
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

[PHP] Re: How to read PHP variables.

2005-07-13 Thread Jasper Bryant-Greene
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