hi there! i have a problem manipulating a text file using php. I want to write information posted from an html form. from the example below i want to upload the file and it must be under the specific year and the number must be i sequence. i want the php script to check the year and the number and post the new file under the specific year and number .eg if i upload file 1995_5.rtf it must be written under 1995_4.rtf.
1995_1rtf (8 June 1995) S v m [tty]xs a; 1995 (3) SA otyttt
1995_2.rtf (8 June 1995) S v m [tty]xs a; 1995 (3) SA otyttt
1995_3.rtf (8 June 1995) S v m [tty]xs a; 1995 (3) SA otyttt
1995_4.rtf (8 June 1995) S v m [tty]xs a; 1995 (3) SA otyttt
1996_1.rtf (8 June 1995) S v m [tty]xs a; 1995 (3) SA otyttt
1996_2.rtf (8 June 1995) S v m [tty]xs a; 1995 (3) SA otyttt
1996_3.rtf (8 June 1995) S v m [tty]xs a; 1995 (3) SA otyttt
1996_4.rtf (8 June 1995) S v m [tty]xs a; 1995 (3) SA otyttt
1997_1.rtf (8 June 1995) S v m [tty]xs a; 1995 (3) SA otyttt
1997_2.rtf (8 June 1995) S v m [tty]xs a; 1995 (3) SA otyttt
1997_3.rtf (8 June 1995) S v m [tty]xs a; 1995 (3) SA otyttt
1997_4.rtf (8 June 1995) S v m [tty]xs a; 1995 (3) SA otyttt