darkloshean — 2013-02-19T18:38:39-05:00 — #1
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?
ralphm — 2013-02-19T18:54:45-05:00 — #2
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.
darkloshean — 2013-02-19T19:06:47-05:00 — #3
Ok i'll try that way. thank you, appreciate it:)