You forget a .
on this line:
$moreLink = '<a href="https://stackoverflow.com/books/".$path'">Read more > </a>';
It should be
$moreLink = '<a href="https://stackoverflow.com/books/".$path.'">Read more > </a>';
^ here
1
solved php Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING [duplicate]