{source}<?php $variable = "some_value"; include JPATH_SITE . '/somefolder/my_script.php'; ?>{/source}
{source include="somefolder/my_script.php" name="John"}{/source}