Executing PHP scripts through the command line

I'm trying to execute some of my PHP scripts through the unix command line, rather than through the web. However, it only seems to work on RPM versions of PHP, and not the tarred versions.

I know all you had to do in the RPM versions, was to simply do a "php my_script.php" to execute it, but I can't figure it out on the tar versions of it.

I'm using Red Hat 7.1 and 7.2. Any help would be very much appreciated...

 

 

 

 

Top