Where Should I Put A Php Include/require Statement In Html?
I created a PHP class inside a file, and now I want to use it in my HTML pages. Where should I put the require or include statement inside the HTML page? Is there a performance di
Solution 1:
You have to put it anywhere before the code that depends on it is called. Otherwise where you place it won't affect performance.
Many applications typically include files they are dependent on at the top of the file as it makes it easier t keep track of what you're using that way.
Post a Comment for "Where Should I Put A Php Include/require Statement In Html?"