2 replies
by jvnane Accepted solution
by tony hopkinson Accepted solution
You've misunderstood include
Basically the incude directive in your 'main page' is replaced by the content of tge included file. There is no inside to the include file, it has the same scope as the page. All included does is save you copy and pasting it everywhere you want to use it, and maintining all those copies. It's not a library or dll or some such.
Best bet is to do the paste it in manually into a page and then get it working where you can see it. Then put the working stuff you want to use in the include file.
I have a vague memory of a similar issue and I think all that we did was put all the code in the include file inside a function, bit crap but it worked.
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending