What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » PHP - storing a string

PHP - storing a string
Author: Message:
rav0
Veteran Member
*****

Avatar
i have an avatar

Posts: 1419
Reputation: 29
34 / Male / Flag
Joined: Aug 2003
RE: PHP - storing a string
You can't make PHP remember anything, each request is separate, and disappears once it's been served. You'll have to save it somewhere (eg. text file or database), as plain text or serialized.

You should give each visitor an ID number, and put that in a hidden form field, and use that when saving and loading the data already entered, else you will have different visitors' data all being mushed together.

I think that file-get-contents and file-get-contents might be sueful for saving/loading a text file, but there might be a better alternative for this situation (that I don't know).
| [Image: dorsh] |

(\ /)
(O.o)
(> <)

This is Bunny. Copy Bunny into your signature to help him on his way to world domination
07-12-2006 07:20 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
PHP - storing a string - by Weyzza on 07-12-2006 at 05:14 AM
RE: PHP - storing a string - by rav0 on 07-12-2006 at 07:20 AM
RE: PHP - storing a string - by WDZ on 07-12-2006 at 07:55 AM
RE: RE: PHP - storing a string - by rav0 on 07-12-2006 at 08:12 AM
RE: PHP - storing a string - by Weyzza on 07-13-2006 at 02:53 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On