hey wanted to know if there is a way to use include function on .html file intend of on .php file? the reason for that is that most of my site is on .html and i dont want to change it to .php because of the search engine and wanted to know if there is a way to do that. thanks
search for "parse html as php". it will lead you to examples of htaccess files to set it so html is treated like its php. here's one such page: http://www.electrictoolbox.com/apache-parse-html-as-php/
yes i found something like that in google in the start but didnt found the file because he is hidden in the ftp but thanks for the help i think admisn can close this trade
Yeah the htaccess method is the only way short of changing your httpd.conf file directly. You should be able to see hidden files with FTP. If you can't, contact your hosting provider and ask them to change it for you
Actually, most FTP clients have a setting to show hidden files. In filezilla its under Server > Force Showing Hidden Files
No its not. It does pop up a dialog explaining most FTP servers show all files but some are broken. It shouldn't be needed. I always try to do everything possible myself before asking the hosting providers to change things since they are often slow to respond. Has been like 2 times were it actually worked.
there is three ways 1- write in html file php cods between <?php ?> then include the files by include(); 2- by .htaccess 3-by PHP Templates Engine
If you are using include() you shouldn't have to make any changes to your server settings; PHP will include any file regardless of name and attempt to process it as PHP.