[SOLVED]contents of an array to a single line in a text file
Posted: Sun Feb 20, 2005 11:50 am
I am trying to echo the contents of an array to a textfile so I can dynamically generate shell scripts. Any help with this would be very much appreciated.
PHENOM | PLEASE USE
Code: Select all
<?
$nodes1 = ($HTTP_POST_VARSї"nodes"]);
include 'db1.php';
foreach ($nodes1 as $node1) {
$add = ("-a add_member=$node1 ");
if ($submit) {
exec("echo $con $nim nim -o define -t mac_group $add $group >> /tmp/test/loadaix");
}
}
include 'style.php';
echo "<table border="0" cellpadding="0" cellspacing="0" width="90%"
align="center">
<tr>
<td align="left"><strong><font color="#FFFFFF">$group has been created!</font></strong></td>
</tr>
</table>";
?>Code: Select all
TAGS NEXT TIME[/size][/color]