Lets say i’m going to use PHP strictly to process data. The user gives a query like “13”, which filters through 20 possible switch statements, processes a function, and spits out a numeric response.
But lets say that since some functions are really long and some are short, the entire file is a megabyte (which is extreme, of course).
Here are my questions.
- If the file is a megabyte, but that’s all on server side, the user doens’t have to download the entire file to view the result, right?
- If the file is something like 200 kilobytes, does it take it very much longer for the server to process a response through it if most of that code isnt being used on any given query?
- Would it be significantly slower to have 20 functions called from a switch statement, or would that be basically the same as having 20 different files? If it was possible for me to direct people to a different page based on the function they wanted (i.e. instead of ‘input function and hit submit’ have something like ‘click here for function 13, click HERE for function 14’).
Thanks in advance!
Do you have a zombie problem and nowhere else to turn? Ask the specialists! http://ozort.org