shadowayex Posted December 10, 2007 Author Share Posted December 10, 2007 Well since no one answered my question let's simplify it. If I wanted to have my site save user settings, how would I go about doing that? Link to comment Share on other sites More sharing options...
justsomeguy Posted December 10, 2007 Share Posted December 10, 2007 Any settings should be stored in a database. The details of what you put in the database, again, depend on your application. You can save whatever you want, you just need to design the database to hold it all. When someone logs in you store their user ID in the session and then you can use the user ID to look up settings or preferences on each page. Link to comment Share on other sites More sharing options...
shadowayex Posted December 19, 2007 Author Share Posted December 19, 2007 Ok, so I got most things going good now, but I've got another questions. How do you make it so someone can type in a text area and click a "Save" button and have it save to a file, and if that file doesn't exist, make it. Link to comment Share on other sites More sharing options...
justsomeguy Posted December 19, 2007 Share Posted December 19, 2007 You can use fopen and fwrite, or file_put_contents.http://www.php.net/manual/en/function.fopen.php Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.