![]() |
PHP within HTML pages
Might be a daft question?:
Can I have a .htm or .html page with embedded php code? I am currently trying to test this with some very basic code: PHP Code:
Either that or can someone confirm that .php pages will be indexed by search engines/robots/etc. including the follow links |
Re: PHP within HTML pages
PHP code will only run if the file suffix indicates it's a PHP file, the same rule for SHTML and SSI. PHP files do however get indexed by search engines, certainly google indexes them.
|
Re: PHP within HTML pages
Cheers m8 - I'll stop pulling php.ini and httpd.conf in pieces now!
It was the indexing that I was bothered about - I am assuming that META tags in PHP files will be referenced in the same manner? |
Re: PHP within HTML pages
Quote:
|
Re: PHP within HTML pages
Actually all you need to do is put this in a .htaccess file and upload it to the root of your public webspace:
AddType application/x-httpd-php .html .htm |
Re: PHP within HTML pages
Quote:
|
| All times are GMT. The time now is 03:13. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum