I’m quite new to using PHP but this has been stumping me for a while now. Here is my test.php
<?PHP
$db = 'str1';
$sql = 'str2';
$cat = $sql . $db
echo $cat
?>
First, when i run php test.php, i get no output. i now know that i am missing a semi-colon or 2 here. It would be nice if php told me which line the syntax error was on. The best i can get is to run php -l which indicates that there is a syntax error at all. But it seems like i could get more info? Any idea how?
You are missing
;in the last 2 line that is why you are having errors. To see this errors make sure thaterror_reportingis on in your PHP configurationExample