I was wondering if there is a better way to keep website text independent of the site's layout. If i enter my text directly into the html or php file, there would be a lot to worry about when changing the site's design. Storing it in a database would have me little to worry about. What other possibilities are there? Thanks!
Best How To :
Although is a Silly question I'll answer it, we all have to start somewhere;
1) Use database
<?php echo $db_result->profileInfo; ?>
2) Use plain text
$profileInfo = get_file_contents(PATH."/".$userid."/profileInfo.txt");
<?php echo $profileInfo; ?>
3) Use json
$profile_json = get_file_contents(PATH."/".$userid."/profileInfo.json");
$profile = json_decode($profile_json);
<?php echo $profile->info; ?>
We cannot give you more information, all the functions and techniques are something you'll have to study by yourself, research and start practicing and seeing what you get with each.