Re: [PHP] write on the begin of a file

2002-10-30 Thread Marek Kilimajer
; <[EMAIL PROTECTED]> Sent: Wednesday, October 30, 2002 6:28 AM Subject: Re: [PHP] write on the begin of a file There is no insert in fputs, you need to make a new file and then rename it to your old one, or build it in the memory and then overwrite it. Sébastien Eckert -- Netika w

Re: [PHP] write on the begin of a file

2002-10-30 Thread Rick Emery
Mike Ford had the answer: $fp = fopen("test", "r+"); - Original Message - From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Wednesday, October 30, 2002 6:28 AM Subject: Re: [PHP] write on the begin of a fi

Re: [PHP] write on the begin of a file

2002-10-30 Thread Marek Kilimajer
There is no insert in fputs, you need to make a new file and then rename it to your old one, or build it in the memory and then overwrite it. Sébastien Eckert -- Netika wrote: Hi I have this *** line 1 line 2 ... *** and i want have this after my script ... *** MY NEW

[PHP] write on the begin of a file

2002-10-30 Thread Sébastien Eckert -- Netika
Hi I have this *** line 1 line 2 ... *** and i want have this after my script ... *** MY NEW TEXT line 1 line 2 ... *** i had test this but it seems not work : $fp = fopen("test", "a+"); fseek ($fp,0); fputs($fp,"set IP=192.11.11.11\n"); fclose($fp); i had