PHP - Parse error: syntax error, unexpected T_VARIABLE in /home/a5547326/public_html/index.php on line 6 -
i have been trying put small testing site project @ codebase.host22.org, , cant seem php script work. script hown follows:
<?php $browser = get_browser(null, true); $data = $browser[browser] $f = fopen("data.csv", "a"); fwrite($f, $data = ","); fclose($f); ?>
i don't see problem. error when trying visit page:
parse error: syntax error, unexpected t_variable in /home/a5547326/public_html/index.php on line 6
my hosting 000webhost. there problem code or server?
you missed semicolon after $data variable.
$data = $browser[browser];
Comments
Post a Comment