Re: [PHP] Adding new data at beginning.

2001-02-22 Thread David Robley
On Fri, 23 Feb 2001 08:34, Jan Grafström wrote: > Hi! > I am trying to put in a new data at the beginning of a file. > I have started like this; > > > > $yourfile = "test.xml"; ( this is the file.) > $fp = fopen ($yourfile, r); > $message = array(1 => '', '', '', '', '', '', > ''); > He

[PHP] Adding new data at beginning.

2001-02-22 Thread Jan Grafström
Hi! I am trying to put in a new data at the beginning of a file. I have started like this; $yourfile = "test.xml"; ( this is the file.) $fp = fopen ($yourfile, r); $message = array(1 => '', '', '', '', '', '', ''); Here I need some code to get the output look like this"" print_r($mes