Results 1 to 3 of 3

Thread: Include

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2005
    Posts
    32

    Lightbulb Include

    Hi Friends
    I was wondering whether including the html part of a program as an external file is a good idea. I saw it working neetly in phpbb, but will it takes more time for the compiler to do so? Is it a burden on the compiler?; as far as a heavy traffic site is concerned.

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Include

    It depends how you do it. As a general rule of thumb raw file system access is quicker than a database query, yet most high traffic database-driven sites will execute several queries per request anyway. The expense is not big.

    Also, PHP doesn't have a compiler. It is an interpreted language. That having been said, the interpreted code is cached to a certain extent.

  3. #3
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Include

    Quote Originally Posted by abhilashdas
    Hi Friends
    I was wondering whether including the html part of a program as an external file is a good idea. I saw it working neetly in phpbb, but will it takes more time for the compiler to do so? Is it a burden on the compiler?; as far as a heavy traffic site is concerned.
    Templates are a good idea and while they have a slight impact on performance, their benefits far outweigh any performance issues. You can write your templates in PHP with the help of their alternate syntax, or you can use a templating system such as Smarty.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

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



Click Here to Expand Forum to Full Width