This is my first question here and I hope it is simple enough to get a quick answer!
Basically, I have the following code:
$variable = curPageURL();
As to why you're not being notified of the syntax error: It's fairly likely that your error reporting settings aren't set up correctly.
Open php.ini and make sure the following is set:
php.ini
display_errors = On
And:
error_reporting = E_ALL