I have a function in a script that is called if two parameters are detected and i call the script via commandline:
php index.php '2422244' 'Master chief'
My problem is the script is echoed and the function not being called. what could be the problem?
UPDATE: index.php
<?
if (isset($argv[1])) {
if(isset($argv[2]) {
$start = doSomething();
}
}
?>