include menu.php in index.html

i have tried hard to include menu.php in index.html but nothing is happen,

index.html code

Untitled Document <?php include("menu.php"); ?>

Welcome to my home page.

Some text.

-----------------------------------------------------

menu.php code

home|newPage|contactus

.htaccess code

AddType application/x-httpd-php .php .htm .html
AddHandler x-httpd-php .php .htm .html

plus i tried many other codes with php5 and a lot more stuff, but no thing is happening.
i also used it to install php server, but not.

what i do i am so depressed,
kindly sir help me in step by step please …

Try changing the double quotes around menu.php to single quotes. That is what works for me.

Nothing to do with single or double quotes. You can’t include anything in an html file using php. Change index.html to index.php and it’ll work just fine.

Sponsor our Newsletter | Privacy Policy | Terms of Service