Smudly Posted July 25, 2010 Share Posted July 25, 2010 I want to create a page that contains all sorts of Variables with values such as Prices, Name of Site, Rates, etc. I want to create an admin page, that allows the admin to easily edit the values inside this php file. How does this work without the variables being reset to their default values everytime the page is reloaded. I tried google but wasn't sure what exactly to search for. I'll take anything you can give me. A link to learn more about how to do something like this or even some tips & tricks. Link to comment https://forums.phpfreaks.com/topic/208801-edit-variables-contained-in-a-file/ Share on other sites More sharing options...
joel24 Posted July 25, 2010 Share Posted July 25, 2010 You'd be best off storing the values in a database, get a copy of this book if you're just starting out otherwise you'd have to use the fopen() function and the fwrite() function to edit a file... go with the database option Link to comment https://forums.phpfreaks.com/topic/208801-edit-variables-contained-in-a-file/#findComment-1090797 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.