Parse error: syntax error, unexpected T_OBJECT_OPERATOR
Posted: Wed Jan 28, 2009 8:43 pm
I'm getting the following error:
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:
Apparently Php 4 cannot handle this type of function call chaining.
One workaround is use a temp variable like this:
i realize this is probably not right, can anyone help?
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);
}
?>