which is faster: include() or all in
Posted: Thu Jul 04, 2002 3:53 pm
I have a web page that starts with switch statement that has several cases and each case has one shared function (basically a design template) and it's own unique function. There's a lot of HTML in most of the case parts because I'm dealing with the addition, editing and viewing of a fairly large set of data.
My question: is it better to have all the functions with their html right in my php file (1400+ lines), or should I have an include() for the html pertaining to each function?
The latter would make my main php file shorter, but would it make it faster to process and output?
My question: is it better to have all the functions with their html right in my php file (1400+ lines), or should I have an include() for the html pertaining to each function?
The latter would make my main php file shorter, but would it make it faster to process and output?