PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
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.
I have register_globals=On in my php.ini file. The script works except for the tha fact the it will echo every instance of $node1 on a seperate line in the text file.
rsh 10.2.1.102 nim -o define -t mac_group -a add_member=test3 nim-group
rsh 10.2.1.102 nim -o define -t mac_group -a add_member=test6 nim-group
rsh 10.2.1.102 nim -o define -t mac_group -a add_member=test10 nim-group
rsh 10.2.1.102 nim -o define -t mac_group -a add_member=test11 nim-group
What I am trying to get it to produce is:
rsh 10.2.1.102 nim -o define -t mac_group -a add_member=test3 -a add_member=test6 -a add_member=test10 -a add_member=test11 nim-group