running it through the 'php' or 'php5' command should do it. Here are a few ways that might work given your file was 'script.php':
Code:
php script.php
php -f script.php
cat script.php | php
php < script.php
At least one of those should work, if not, try appending a 5 to the command: 'php5'