You are here: Re: does php file size matter? « PHP Programming Language « IT news, forums, messages
Re: does php file size matter?

Posted by Michael Vilain on 06/05/05 12:42

In article <jc65a1t4vq7nqvrv14iltacjmkq6924k09@4ax.com>,
Tim Roberts <timr@probo.com> wrote:

> Marcus <JumpMan222@aol.com> wrote:
> >
> >Quick question... I have a class that is over 1200 lines of code and 50
> >KB in size. This file does not display any html, it is just included
> >and after I call all the necessary functions, I save the data and
> >display it on my output page.
> >
> >Here is my confusion - to the best of my understanding, since php is
> >server side, this file should never be "transferred" to the client,
> >correct? In other words, whether my class is 100 lines or 10,000 lines,
> >it shouldn't have any affect on my bandwidth or transfer rate should it?
> >Please correct me if I am wrong, but I have been operating under the
> >assumption that the only thing that gets transferred to the client is
> >the php file after it has been parsed for all html formatting, and the
> >size of this final product is what affects the speed of transfer.
>
> True.
>
> However, PHP does have to recompile that entire file for every page, unless
> you are using a cache/optimizer. That takes time -- possibly a lot of
> time.

This is why I broke my code libraries into functional parts. That way,
each page can require what it needs and only what it needs.

--
DeeDee, don't press that button! DeeDee! NO! Dee...

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация