how to access other file type through php
<p>im considering to create a resource file in php to read other file type??</p>

<p>for instance, instead of calling the image / javascript directly, i shall pass a query string to this resource.php indicating the type of file, and it would perform the same function as it is originally.</p>

<p>for instance:
using <code>resource.php?type=js&amp;file=alertme.js</code> which would read alertme.js that alert("hello world");</p>
