Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 20th, 2003, 07:57 AM
wheniwork wheniwork is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 7 wheniwork User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old October 20th, 2003, 10:45 PM
marron79's Avatar
marron79 marron79 is offline
Rut row Raggy!
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2001
Location: Tornado Alley
Posts: 558 marron79 User rank is Private First Class (20 - 50 Reputation Level)marron79 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 9 h 41 sec
Reputation Power: 8
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Calling and Writing Variables to/from Text File in PHP.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT