serialization - What is better approach for saving configuration data in php? -


i interested little bit fin drupal , saw saves many configuration options db blob (i think serialized php variables array).

  • why drupal don't use saving conf. options php file , simple include it?
  • what think better approach saving conf. data: db or file , simple include?
  • maybe filesystem faster socket , db?

storing configuration information in central location database allows load balancing on front end. if using conf files , had 2 load balanced web servers, need make sure conf files on each server stay in sync. database easy way centralize configuration, , replicate if needed.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -