hi
this is my php script:
class Compactor
{
$options = 'a';
}
my php script runs corrcetly normaly but when i want run it with cron job it showes me:
PHP Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' form line $options
i changed it to :
class Compactor
{
var $options = 'a';
}
it runs correctly without error with cron job.
now i have a question. how do i define private or public variabale or array (for run with cron job)?
these lines give error:
private var $options = 'a';
private $options = array('a'=> 'b');
anyone can help me to correct these lines?