Re: Including PHP scripts on same server [message #171926 is a reply to message #171911] |
Fri, 21 January 2011 17:08 |
Leonardo Azpurua
Messages: 46 Registered: December 2010
Karma:
|
Member |
|
|
"jwcarlton" <jwcarlton(at)gmail(dot)com> escribió en el mensaje
news:5f96a08e-f405-4008-b37e-1fef85b66ecf(at)l24g2000vby(dot)googlegroups(dot)com...
>> Why does it matter. If you're that concerned about speed of
>> execution,
>> why are you using php in the first place? You should code your site
>> in
>> C.
>
> That's actually a very good question. If I were a better C
> programmer,
> I probably would :-)
:-)
I am above anything else a C programmer. In fact, my first approach to
web development was a set of C programs that ran as CGI.
It is fine if you host your own domain, but with many hosting
providers, allowing your own binaries to run is some sort of anathema.
With most OSs, the most consuming operations in file handling are
"opens", so, yes, it is likely that splitting a large file into
several small units will add a significant overhead to your script's
execution time.
But if one compares the development time required to navigate and
maintain a large source file against the time required to open the
specific file with the specific functions that you have to work with,
it is likely that the overall life cycle of your program will improve
by using simpler, smaller units.
"Overhead", with modern equipment and OSs, may be safely neglected
except in the most critical applications.
--
|
|
|