Recommend this page to a friend! |
Download .zip |
Info | Example | Screenshots | View files (6) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2021-03-29 (21 days ago) | Not yet rated by the users | Total: 42 This week: 3 | All time: 10,050 This week: 82 |
Version | License | PHP version | Categories | |||
website-full-text-se 1.0 | Freeware | 7.4 | Files and Folders, Searching, PHP 7 |
Description | Author | |||
This package can be used to search for text expressions in files in a folder. Innovation Award
|
The SearchClass is a full text search for websites with multiple pages. It works with HTML or PHP based sources. The class can be extended with your own templates and/or your translations.
The class is full of comments and should be self-explanatory.
![Search Result Page][image-1]
After calling the class by using a form (which is part of the HTML-template), the class will start a search according to the given folders.
For the initial search filters will be applied:
The search limiters:
<!--no_search -->
<!-- no_search_start -->
<!-- no_search_stop -->
Will also work inside PHP-code by applying the standard PHP comment in front or around it.
E.g. //<!-- no_search -->
or /<!-- no_search -- >/
All relevant file-paths will be stored in an array then the files will be searched again and a text excerpt will be extracted. Finally the search results will be displayed in Google-style result page.
There are two options to display the page title:
There are also two options to display the page description:
In both cases, the PHP variable will overwrite the meta-tag, if it exists, too.
If no limiter is found inside a source, *ALL* text will be searched and used for the initial search!
But for the text excerpt itself, all filters will be applied before displaying it.
At the end of the main class or its extension is the template included that displays the result page. Make sure you include the template only ones. If you don't extend the main class, include the template there. If you extend the main class, include the template in its extension.
The minimum PHP version is 7.4
[image-1]:screenshot.png
Screenshots | ||
Files |
File | Role | Description | ||
---|---|---|---|---|
templates (2 files) | ||||
LICENSE | Lic. | License text | ||
MySearch.php | Class | Class source | ||
ReadMe.md | Doc. | Documentation | ||
SearchClass.php | Class | Class source |
Files | / | templates |
File | Role | Description |
---|---|---|
search.html | Data | Documentation |
search.php | Example | Example script |
website-full-text-se-2021-03-29.zip 252KB | |
website-full-text-se-2021-03-29.tar.gz 252KB | |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.