with the include function on php you can include any file type into anypage. This is where the basis of php templating starts.
anyway.. you should be able to include a file. the unloading i'm not so sure about.. you might have to unset the variables after your finished with them.. if your completely anal about having them killed. but you could leave em.. i'm sure it wouldn't really take up that much memory and they would be killed eventually after not being used.
the concept works exactly like i stated above
| Code: : |
<?php
inclulde('file.extension') // can be anything technically
blah blah blah more php script which may manipulate the contents of included file
?>
|
manipulate contents of file.. I've really only included files which store variables I use and re-use all through out my web allications. If this doesn't suit what you want. you may need to expand on what exactly your trying to load / unload from another file via inclusion.
Post edited by: cyberpunk, at: 09/06/2007 10:04pm