heres an example of the code i have
class someclass
{
public function run($parm)
{
system($parm);
}
public static function create($item1,$item2)
{
$this->run($item1 . $item2);
}
}
then i have a file that attempts to use the create method:
someclass::create($one,$two);
when interpreting, i get this error: "Using $this when not in object context in"
does anyone know how I can fix this? I think I understand why its wrong (the class hasn't really been set up) - I just dont know how to correct it. Is there a way I can access class functions without using $this ? additionally I tried making the run method static too, but that didnt seem to work.