Parse error: syntax error, unexpected T_OBJECT_OPERATOR
I know its being generated by this line as a result of my web host using php 4 and not 5:
Code: Select all
<?php
if (!$skype->client()->isRunning()) {
$skype->client()->start(true, true);
}
?>
One workaround is use a temp variable like this:
Code: Select all
<?php
$skype = client();
if (!client()->isRunning()) {
$skype->client()->start(true, true);
}
?>