Hey all, quick question to see if anyone has any ideas. I have an
object:
$special = new special;
Let's say I have a function:
class special {
function outputtext() {
return "test";
}
}
now let's say I want to use the exec command to output that text:
exec("/usr/local/bin/php -r 'echo
$special->outputtext();' ",$returnarray, $returnvar);
I get an error call to a member function on a non-object.
Any ideas how to pass teh GLOBAL OBJECT var into the shell exec
command? I am haivng a terrible time figuring out what to do.
THanks for any responses!
JJ
object:
$special = new special;
Let's say I have a function:
class special {
function outputtext() {
return "test";
}
}
now let's say I want to use the exec command to output that text:
exec("/usr/local/bin/php -r 'echo
$special->outputtext();' ",$returnarray, $returnvar);
I get an error call to a member function on a non-object.
Any ideas how to pass teh GLOBAL OBJECT var into the shell exec
command? I am haivng a terrible time figuring out what to do.
THanks for any responses!
JJ
Comment