Jump to content

Php site in one file?


Mindaugas

Recommended Posts

If all of the site is in one file, it could almost make it slower. That file will obviously get bigger as more code is added to it, and therefore a larger file size will equal slower download. If you put your website across multiple files, then only the files that need to be loaded for that page will be loaded, and could mean it's quicker?

 

I don't know if this is true in practice, but I thought it's something to think about..

 

Denno

Link to comment
Share on other sites

However you store the files internally will have (next to) no noticeable difference to the end-user; they still receive the same HTML content back from the server. If you had a lot of users accessing the website though there may be a slight bottle neck in reading the file, but the main problem you'll have would be in maintaining it. Trying to find a specific point or line or something could be a nightmare, but could be avoided by using a proper file structure.

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.