Log in

View Full Version : Quick Question



8675309
10-01-2007, 03:08 AM
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!!!

8675309
10-01-2007, 03:34 AM
Oh Yeah, The text file only has to hold one variable;)

insanemonkey
10-01-2007, 03:36 AM
why not use mysql... its alot easier...

8675309
10-01-2007, 03:45 AM
I'm not at all familiar with mysql

insanemonkey
10-01-2007, 03:53 AM
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...

tech_support
10-01-2007, 06:46 AM
http://www.php-mysql-tutorial.com/mysql-php-guestbook.php

insanemonkey
10-01-2007, 06:48 AM
that site has alot of tutorials so you can learn about php and mysql... i luv the site... so start there....

tech_support
10-01-2007, 06:58 AM
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 (http://www.dynamicdrive.com/forums/showthread.php?t=24882).