+ Reply to Thread
Results 1 to 2 of 2

Thread: Replace string on file

  1. #1
    Junior Member
    Join Date
    Jun 2012

    Replace string on file

    I want to create a script that replaces a string inside a file and then write it back , i am actually new to PHP so i'd be thankful if you gave me the snippet for it.
    Last edited by supercoder; 11-12-2012 at 03:27 AM.

  2. #2
    Junior Member
    Join Date
    Jun 2012
    Here is the code snippet about how to replace a string on a file then completely rewrite it back.
    //read the entire string
    //replace something in the file string - this is a VERY simple example
    //now, TOTALLY rewrite the file

+ Reply to Thread

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts