Php help

Discussion in 'PHP' started by joesgraphics, Feb 22, 2007.

  1. #1
    I want to no how i would edit stuff in an exsternal file e.g. config.php and in the file there will bee things like $cur = '£'; etc and i would like to be able to change that from a form if it can be done.

    Thanks in advanced. :)
     
    joesgraphics, Feb 22, 2007 IP
  2. Icheb

    Icheb Peon

    Messages:
    1,092
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Read the file with fread, put it in a textarea, store the changed data with fwrite.
     
    Icheb, Feb 22, 2007 IP
  3. joesgraphics

    joesgraphics Peon

    Messages:
    206
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ok thanks. :)
     
    joesgraphics, Feb 22, 2007 IP