A
Anonymous
Guest
If it's not working at all (i.e. it outputs nothing), your server is probably not configured to allow php code to run from html pages. Try the same code from a php page, if it works that's probably the reason. If you need to add php capability for html and you're using apache, add this line to httpd.conf: 'AddType application/x-httpd-php .html .htm'