Next we will setup the back-end SQL database structure for the search engine. Pretty snazzy, ehh? Create the Search Engine Database Structure (using MySQL/phpMyAdmin) With our style sheet and the rest of the form all setup, we see our basic search form displayed below. It’s not really required, but it does make things a bit cleaner.
Like when you see “search.php?k=php+tutorial” (with the plus sign being a place holder for a space).
This will be the location of the script that is going to do all the code crunching. action=”./index.php” – the form’s action is the end goal destination.The important code to note from the form is all in the form attributes and the text box attributes: " placeholder="Enter your search keywords" />
(The stylesheet will be included in the source code download above). So this way we can just get into the nitty-gritty of PHP code. I am just going to use a pre-made CSS stylesheet I have ready to go, named main.css.
Be sure to compress the PDF to make it as small as possible.This php tutorial has a FREE open source code download available:ĭownload the Source Code Style for the Search Engine (with CSS)įor simplicity, I’m not going to focus on a how to create a fancy display for the search engine. Instead, convert the file to PDF (or better yet, HTML) then upload. PPT (PowerPoint files) and DOC (MS Word files) should never be posted to the web: they are large files which are slow to download, and the end user cannot open them up without copies of the necessary program on the machine they are using. To find out how to create accessible PDFs, review Microsoft's ' Create Accessible PDFs' and Adobe's ' Creating Accessible Adobe PDF Files' (pdf) PowerPoint (PPT) and Word (DOC) Files All PDFs posted on a website must be accessible. Remember that just because an item is on web does not mean that it's accessible to all visitors. Whenever possible, content should be posted as HTML - separate PDF files should only be used in exceptional circumstances such as it being a formal document. Check out the information and resources at the AODA Web Accessibility at York site for more details. Remember! AODA legislation applies to all content on your webpages, not only the html. ppt file - this affects not only desktop machines, but especially mobile and tablet visitors. For example, if a visitor does not have a copy of PowerPoint installed on the device they are using to view your content, they will be unable to view your. It also ensures that they have the technology at hand to view the content in question. This ensures accessibility for your visitors and that you will meet upcoming legal obligations. Presentations, 'how-to' instructions, descriptions, supporting documentation, checklists, etc.It is important to ensure that only the most up-to-date information is available to your visitors (and the search engines!) Your website is not an archive! Any file that a search engine has found previously, will continue to be accessible if someone wants to find it.
Only keep the latest version of a file online and delete previous copies.This helps when sorting through files and also when creating links. Keep document names as brief but descriptive as possible.