J parse_ini_file() does exactly what the manual says reads your ini file into an array (as an aside here php arrays are not arrays but key value pairs) >From the PHP Help
to "recompose" the ini (and write it out) after you have modded the Array would be quite simple (though there appears to be no corresponding write_ini_file function) it would be something like (assuming a 'sectioned' INI) $S = ''; foreach ($INIArray AS $Section => $Data) { $S .= "[$Section ]$CRLF"; foreach ($Data AS $Key => Value) { $S .= "$Key=$Value$CRLF"; } } fopen(); fwrite($S); I'm sure you can fill in the gaps HTH N
|
_______________________________________________ NZ Borland Developers Group Offtopic mailing list Post: Offtopic@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/offtopic Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe