I'm trying to make a php search engine on my web side, but the search field will be place at the header on every page on my website and not just in one single serach.php page.
So at my index.html i will start with code with:
Now my question is, will the php script work if i still save the file as index.html? or do i need to change it to index.php to allow the php script to work. If so, does it mean that i have to save my entire website as php, since the search field will paced at the header trought all the pages. If thats the case, is it any way to embed or run a php script and still call the file .html?
Hi darkloshean. Welcome to the forums.
Though the ideal is to have pages with a .php extension, you can set your server to accept PHP on .html pages. E.g.
The common way to set this up is via a .htaccess file.
Ok i'll try that way. thank you, appreciate it:)
This topic is now closed. New replies are no longer allowed.