Hi! I'm just into PHP - so excuse my n00b-question(s) to come. When trying to include a script in my HTML, I'm being told to just include f.x. this in my index.html: <?php include("shoutbox/shoutbox.php"); ?> within the <body>-field. And then, when I upload the shoutbox-folder and shoutbox.php, and the index.html and try to access index.html, my shoutbox doesn't show. Do I have to include anything in the <head>-tab ? Or what am I doing wrong?
index.html must be named index.php (or you can find a server directive that processes all html as php.... but it will just be easier for now to rename the file)
Oh.. Thanks a lot! That worked! I'm in the early days of learning this all by my self, so maybe I'm coming back with some more (silly) questions.
If you want your php code work in .html file you can add the following code in your .htaccess file if supported by your server. AddType application/x-httpd-php .php .htm .html