Jump to content

  • Free consultations and support
  • Live chatClick Here for Live Chat
  • Call ico 1888-906-1888
    Phone support: Open

    Ready for your call :)

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams

    Phone support: Closed

    We are back in: 1h 20m

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams


Writing to a file. (PHP)


  • Please log in to reply
&nsbp;

#1 Nasimov

Nasimov

    Apprentice Designer

  • Designer
  • 2 posts

Posted 08 April 2004 - 11:57 AM

It's possible to ammend data within a file vs. just adding data to the beginning or the end of the file? Mean to change something in the "middle" of the file.

Thanks.

#2 losl

losl

    Apprentice Designer

  • Designer
  • 6 posts

Posted 10 April 2004 - 02:20 AM

if you need to edit your best bet would be to just read the whole file to a varible...

but if you simply need to append your file in the middle you can set the file pointer to a certain spot in the file using the fseek() function




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users