Creating new, smaller PHP files from 1 large PHP file

That is exactly what @jeffreylees is talking about.

Put each section into separate file: section1.php, section2.php etc
and then combine them using include:

<?php 
    include "section1.php";
    include "section2.php";
    // and so on
1 Like