Config Page - Quick Answer Needed

Discussion in 'PHP' started by NetworkTown.Net, Apr 4, 2007.

  1. #1
    Hi

    i want to know if there is a way to edit information in a form then when the form is submitted the information is then dited in a file. Like if i madea form for a config file it would have all the config information in a form then when submitted it will be edited in config.php is this possible.
     
    NetworkTown.Net, Apr 4, 2007 IP
  2. papa_face

    papa_face Notable Member

    Messages:
    2,237
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    285
    #2
    It would be possible, but it would be very difficult. I suggest reading the config file into a text field, and allow the user to edit it, and the submit the form, and have the script save the config file with the additions by the user.
     
    papa_face, Apr 4, 2007 IP
  3. phper

    phper Active Member

    Messages:
    247
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #3
    If all the configs are in the form, you can just overwrite all the existing values and insert the values from the form as if you were writing to a new config file.
     
    phper, Apr 4, 2007 IP