Results 1 to 8 of 8

Thread: Quick Question

  1. #1
    Join Date
    Oct 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Quick Question

    I was wondering how to save PHP variables to a txt file and then
    retrieve them again.

    Example:

    There is an input box, after submitted the stuff that was written in
    the input box will be saved to a text file. Later on the results need
    to be brought back as a variable. So lets say the variable is $text I
    need that to be saved to a text file and be able to retrieve it back
    again.

    Hope it makes sense,

    Thanks in advance!!!

  2. #2
    Join Date
    Oct 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Oh Yeah, The text file only has to hold one variable

  3. #3
    Join Date
    Oct 2005
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    why not use mysql... its alot easier...
    Hey new design new look, goto xudas for personal webdsign help.. (:

  4. #4
    Join Date
    Oct 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'm not at all familiar with mysql

  5. #5
    Join Date
    Oct 2005
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    well the only way i know is to use mysql.. and if you want to use mysql. look for a guestbook tutorial, they will help you enter in a sql database and and then you can post into mysql and retrieve from mysql... very easier if you take your time...
    Hey new design new look, goto xudas for personal webdsign help.. (:

  6. #6
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  7. #7
    Join Date
    Oct 2005
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    that site has alot of tutorials so you can learn about php and mysql... i luv the site... so start there....
    Hey new design new look, goto xudas for personal webdsign help.. (:

  8. #8
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    And... so? Is this post helpful in any way? Are you trying to boost your post count?

    Oh, and learn how to spell.

    Oh, and to 8675309: choose a better thread title next time.

    Warning: Your title isn't describing your problem. Please read the new policy on thread titles.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

Bookmarks

Posting Permissions

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