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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.