I have a very simple .php file that just runs phpinfo(). The php bit is nested inside an XHTML structure though (see below). When I run the file, it works fine.
However, I'm also using a <script> tag and for some reason it confuses the code inspector, which is picking up all sorts of spurious errors. If I remove the <script> line, the code inspector is happy again.
Any ideas why?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<meta http-equiv="content-type" content="application/xhtml+xml;charset=utf-8" />
<script src="./style/functions.js" /></script>
<?php phpinfo(); ?>