On Thu, Feb 04, 2010 at 09:58:41PM +0000, James Bensley wrote:
PHP is a server side language which means you need a web service (like Apache) running serving up your pages like a web server with the PHP extensions/interpreter installed. What this means is that you can write a page in HTML and throw some PHP in. Then when a client browses to mywebserver.com/my_php_page.php on the server, instead of simply parsing the client browser the code of the page to render the server sees that the file has a .php extension and reads and executes the PHP code sending the resulting HTML code of that PHP code execution to the clients browser.
So where is this <?php syntax defined? Is it part of HTML, is it a bodge added by apache or what is it? That's really what I was asking, I (sort of) know the difference between server side and client side stuff (I think I did even say something about <SCRIPT> being client side) and <SCRIPT> is at least 'proper' HTML.