For instance, if I include a php menu script that calls to a file (menu.php) to be displayed in a div, do I need to change the name of the page that the call to script is located to a .php, or can I keep it as .html and still have the script run correctly? kinda confused about that? thanks!
You do have to change the page name that has the include() script in it to .php. If you don't, the code will not parse.
you can use incude(); to include and page type or image type as long as the host supports the server side launagage.
You don't have to change the extension if the host configured php to run with other extensions. But I think mosts hosts define only .php
To get regular html pages to handle php code, you need to add this line to a .htaccess file. AddHandler application/x-httpd-php5 .html .htm PHP: <?php include 'menu.php'; ?> PHP: