|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Calling and Writing Variables to/from Text File in PHP.
hi!
I am putting together a form that will allow a user to change certain content of another page. I am thinking a can use a text file to store all the variables. When the user sends the form it will save/updated the variables listed in the text file. And a different page will use the text file's variables to fill in its content. Is this possible? Where do I start? Any examples? Thanks, WIW |
|
#2
|
||||
|
||||
|
Your best bet is to use cookies to store this information. Depending on how many visitors there are to your site, you could end up with hundrends of text files on your server, which isn't very efficient IMO. Using cookies will result in the user being able to change whatever w/out bogging down your server with creating text files or updating a database.
BTW, if you have any other PHP-related questions, I highly recommend posting in the PHP forum. While I'm sure there are many PHP programmers here like myself, you're posts will probably get a more responses in the PHP forum. |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > Calling and Writing Variables to/from Text File in PHP. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|