Sorry, I'm a newbie to php ;)
I was thinking about using php to write the script file, something
like:
<script type="text/javascript"
src="http://insert_url_here .com/myScript.php"></script>
The php file then echo'ing the source code. If that works then how can
I stop the php file being loaded directly, that is the user browsing
to http://insert_url_here.com/myScript.php and seeing the source. I
only want it to write the source when it is called through the script.
Any help is much appreciated...
I was thinking about using php to write the script file, something
like:
<script type="text/javascript"
src="http://insert_url_here .com/myScript.php"></script>
The php file then echo'ing the source code. If that works then how can
I stop the php file being loaded directly, that is the user browsing
to http://insert_url_here.com/myScript.php and seeing the source. I
only want it to write the source when it is called through the script.
Any help is much appreciated...
Comment