Which php files are kept at the root folder?
in best practice what is the file size of PHP? (300 lines)

Member Avatar for diafol

Good idea to place include and config files above root, unless they are accessed by ajax js, in which case they have to be below doc root - unless you have a 'hub' php file to access them.

Not sure about size. It's good to 'modularise' procedural code as far as possible into separate files - so you're not loading the kitchen sink all the time, but classes should already be squared away into separate files, so that you're not loading every class on every page.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.