Practical
- Get the
PHP search engine
working for the
Works of Shakespeare.
- The user can search for a string in the complete texts of the plays.
- The PHP can search my copy of the files on disk. No need to make your own copy.
For 40%
For 100% (MECB)
As well as the above, do the following:
For 100% (MECT)
As well as all the above, do the following:
- Have a separate form to query if a string is found in Shakespeare or not.
- Base it on the demo of
Ajax calling a server program.
View the HTML and JS of that page.
- Your form will have a button that, when clicked, makes an Ajax call to search for that string in Shakespeare.
- Instead of displaying the actual hits, your page will just display how many hits exist.
- After the button click, your page displays the number of hits without reloading the page.
Write-up
Submit a document containing:
- All the PHP code (since it is server-side and I cannot see it).
- For MECT, all the JS code.
- Maximum 3 pages showing any code
that you are proud of, and explaining what it does.