Hi!
I am trying to put in a new data at the beginning of a file.
I have started like this;
--------
$yourfile = "test.xml"; (<a><b><c><d><e><f></c> this is the file.)
$fp = fopen ($yourfile, r);
$message = array(1 => '<a>', '<b>', '<c>', '<d>', '<e>', '<f>',
'</c>');
Here I need some code to get the output look like
this"<a><b><new><c><d><e><f></c>"
print_r($message);
fwrite ($fp, $message);
fclose ($fp);
I am thankful for any help.
Regards
Jan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]