It seems to me that for 1), you'll want server side includes (SSI). Search for
SSI using
Super Search for more info. This topic is well-explained in other places as well- notably at
apache.org where numerous tutorials are housed.
For number 2), you'll need a require statement in your script. Be sure to append any required file with a "1;". If it's a nice module, you can use it.
AgentM Systems nor Nasca Enterprises nor
Bone::Easy nor Macperl is responsible for the
comments made by
AgentM. Remember, you can build any logical system with NOR.