SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2009
    Location
    Porto,Portugal
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    auto_prepend_file

    Hi.
    Do you guys use the auto_prepend_file function to include things like configuration files or you just include that files in every page?

    There is any disadvantage in using that function?

    Or are other ways to include a config.php file?

  2. #2
    SitePoint Enthusiast
    Join Date
    Apr 2001
    Location
    London, UK
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes, there is a disadvantage, it provides overhead in situations where the config is not necessary - maybe an ajax request, or something that doesnt really require your application configs.

    You can also have a Config singleton class. Or use a front controller.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •