Basically I have a PHP class that that I want to test from the commandline and run a certain method. I am sure this is a basic question, but I am missing something from the
Here's a neater example of Repox's code. This will only run de method when called from the commandline.
hello(); } ?>