Hi Mark,
The simplest possible way of doing this would be to create your own component. To do so, go to the 'components' folder, then create a folder in the format of 'com_yourcomponentnamehere'. Within this folder, create a file named yourcomponentnamehere.php. At the top of this file, add this code:
| Code: |
defined( '_JEXEC' ) or die( 'Restricted access' );
|
(Add this line to the top of all your PHP files to prevent users from executing them directly.)
After that, you can write whatever you need. You can execute the component by going to index.php?option=com_yourcomponentnamehere.