Need a PHP script to update variables within flat file

Discussion in 'Programming' started by numatik, Jun 20, 2009.

  1. #1
    I have tried to do it myself, and even spent the last few hours looking for a pre-made script.

    I have a settings.php file that contains variables such as:
    $color = "#9933CC";
    $email = "name@foo.com";

    I can create the html form, but need help creating the file that will perform the fopen, fwrite and fclose commands.

    If a user enters data into the html form, I would like the process.php (or whatever we name it) file to update those variables in the settings.php file. If some fields are left blank and there is currently a variable set in the settings.php file, I don't want it to be overwritten. basically, only the variables that the user enters data for at that moment should be overwritten.

    Also, there will be a couple of text boxes where the user would type a paragraph of content. I would like to make sure that any unnecessary characters are removed, such as apostrophes when there shouldn't be one.

    I hope this is enough info to go on. How much would you charge and how long would it take. Thanks!
     
    numatik, Jun 20, 2009 IP
  2. numatik

    numatik Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Thanks I have found someone to do this. DP has come through once again! :)
     
    numatik, Jun 20, 2009 IP
  3. hassanahmad2

    hassanahmad2 Active Member

    Messages:
    243
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    60
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    Jone done and payment recieved
    Thanks
     
    hassanahmad2, Jun 20, 2009 IP
  4. viral2583

    viral2583 Well-Known Member

    Messages:
    352
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    Hello,

    I have 5 years of experience in PHP, mysql and ajax. PM me more details.

    I can give you best quality work.




    Thanks you.
     
    viral2583, Jun 21, 2009 IP