reading and writing to a php file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zul001
    New Member
    • Oct 2008
    • 1

    reading and writing to a php file

    hello,
    I am a newbie at php and looking for help in writing the following code.

    read a config file of eight characters
    store in an array say xyz
    update a config file of eight characters from data changed in array XYZ

    I have so far been able to read and display and modify the data but unable to update the config file.

    Help most appreciated

    Julien
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hi Julien. Welcome!

    How are you currently reading and modifying the data?
    Can we see the code?

    If you compile a string that contains the contents of the file you want to write, then you could simply use the file_put_conten ts function to write it.

    Comment

    Working...