Add PHP website search to your website

Want to search your site or another?  You can easily do this by creating a folder in your IIS server.  You will have to right click on the folder and check the security tab of the folder.  You must have read permissions for IIS users and Network Service.

Open notepad and type the following text into notepad.  Note: Change the url of the search engine you want.   To do this, open a browser and perform a search.   Take out the keywords you typed and copy the url.


Save the file with a name of the search.  In the above example, we saved this as Merlot.php in the folder we created in IIS.  Make sure you change the file type when saving in notepad to ‘All Files’.


Open a new file in notepad.  Type the following into notepad, changing the referenced form action to your php’s file name.   We referenced the file above as Merlot.php.


We also added a hyperlink to the website.   Save the file as index.htm.  Again, insure the files you saved have permissions that are the same as the folder.

You can now navigate to your website – http://yourwebsite/yourfolder/index.htm and the search should appear and work.



About TCAT Shelbyville IT Department

The Tennessee College of Applied Technology - is one of 46 institutions in the Tennessee Board of Regents System, the seventh largest system of higher education in the nation. This system comprises six universities, fourteen community colleges, and twenty-six Applied Technology Colleges.
This entry was posted in Computers and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s