Jump to content

PHP Files: Client Download or Server Executed


axiom82

Recommended Posts

Are PHP files downloaded by the client during execution?  One of the major issues I have with Object-oriented PHP is the framework becomes sizable fast.  You include 10 classes just for one small page to have all of the base functionalities required to make the page run...and after all of these includes you have spent a massive amount of unnecessary bandwidth...or so it seems?

 

This returns me back to the original question?  Does the client actually download the php class files or does the server just execute them and push the html out for download?

 

If there is no downloading of the php framework, then I can see how Object-oriented programming is a much better idea...that is, if it does not overload bandwidth and other factors of website performance.

 

Please respond.  Thanks!

Link to comment
Share on other sites

The client will never download any PHP code unless you specifically force it using headers (or your server isn't config'd right.)

 

Everything is parsed on the server side, and then that is what the client downloads.

 

So then what you are saying is that I could have a 2 megabyte custom php framework built for xyz.com and as a result the client and server would not have to download this extra information which makes the framework so easy to manage from class files?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.