Home / Scripts & Code / PHP Scripts / Search
Based - Google CSE PHP Search Engine ScriptBased - Google CSE PHP Search Engine Script
The Ultimate PHP Search Engine Script Built On Google CSE



Average rating of 4.9 based on 35 votes
Home / Scripts & Code / PHP Scripts / Search
Based - Google CSE PHP Search Engine Script
The Ultimate PHP Search Engine Script Built On Google CSE



Average rating of 4.9
179 Support questions or comments
Please login or create an account to post a question or comment.
-
Oct 22, 2022Neïl PurchasedHello I use the nginx file, only the home page is working. when I try to do search or access dashboard I get 404 error.
I think it's an issue with the nginx rules to serve other file.
Please advice what to do
-
Oct 22, 2022MirazMacStudios AuthorSorry but the script requires Apache to work. It can be configured to nginx but unfortunately I'm not an sysadmin. The basic idea is to route all the requests to the index.php file. The script uses Slim Framework v2. You can find a sample guide of how to configure it on nginx here:
https://www.slimframework.com/docs/v2/routing/rewrite.html#nginx
-
Oct 2, 2022Charles05 PurchasedHello, in future updates is it planned for users to be able to create a user account themselves?
Thank you for your answer ! -
Oct 3, 2022MirazMacStudios AuthorNot particularly. But I'll try to add it.
-
Oct 3, 2022Charles05 PurchasedOK ! Thank you in advance I think it's a good thing for us administrators who want to involve users in for example a game or other thing on our site
-
Sep 23, 2022Hello, how many search engines are allowed on this at maximum? and am I allowed to install multiple instances of the script on a single domain name because I have too many search engines for different niches? - View 10 more replies
-
Sep 28, 2022Just came across your codecanyon profile, and found that "inBefore" doesn't have the same mobile autocomplete issue this one has! why not use the same autosuggest plugin here?
-
Sep 28, 2022MirazMacStudios AuthorInBefore doesn't have the fixed search navigation bar, thus it uses a simple JS library. That doesn't work with Based as it has a fixed navigation bar.
Not to mention inBefore uses server backed suggestions which is slower than Based that directly queries Google's autosuggest API instead of proxying it via the server. Thus adding that JS library to Based would break existing/new sites. -
Sep 28, 2022I see. Thank you for the explanation
-
Sep 20, 2022josepham PurchasedHow can i rename sitemap link from sitemap.xml to somethingelse.xml -
Sep 20, 2022MirazMacStudios Authorsrc/routes/base.routes.php
$app->get('/sitemap.xml', CONTROLLER_NAMESPACE . 'Site\SitemapController:sitemapIndex'
->name('sitemap.index'
;
Change '/sitemap.xml' to whatever you wish, for example: '/mysitemap.xml'
-
Sep 19, 2022josepham PurchasedWhat hosting do you use for this script -
Sep 19, 2022MirazMacStudios AuthorFor the demo I use a simple shared hosting. Not a known brand.
-
Sep 18, 2022josepham PurchasedHow can i host it to sub directory of subdomain like this "subdomain.example.com/search" because this show 404 when i search something. - View 5 more replies
-
Sep 18, 2022josepham PurchasedWhat is the rule to host it in this way please i want to use it in subdomain folder
-
Sep 18, 2022MirazMacStudios AuthorSorry but there is no extra rule for that. You just need to make sure the script's htaccess file of the script is present within the subdirectory.
I'm not a sysadmin so this is all I can say. Anything else you better off contacting a sysadmin.
Thanks -
Sep 18, 2022josepham PurchasedI figure it out for anyone need this
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.example.com$ [NC]
RewriteCond %{REQUEST_URI} !^/folderhosted/
RewriteRule (.*) /folderhosted/$1
-
Sep 17, 2022josepham PurchasedHow to add icon on Menu i see icon ID but when i add link to icon is not display - View 6 more replies
-
Sep 17, 2022MirazMacStudios AuthorOh I see. The script's ajax system treats same domain URLs as their own. I'd recommend you to add the link manually to the site with an target="_blank" attribute. As currently for the menu there is no such option present.
Or you can use a shortlink generator like bit.ly to generate a shortlink to that URL and use it like that. -
Sep 17, 2022josepham PurchasedWhat if i want to open it on the same page
-
Sep 17, 2022MirazMacStudios AuthorThen you can omit the target="_blank" attribute and it should work fine if you add it externally in the templates or use a shortlink.
-
Sep 2, 2022josepham PurchasedHi again this is not an issue or support this is just to ask if this is possible, can you add a form on back end where admin can manually add keywords to show up on search. This can be a search form or input field. Or add permission to disable log to normal user except for admin how can i do this am sure it is not hard. - View 4 more replies
-
Sep 2, 2022josepham PurchasedIf possible can you point out which file to edit to achieve permission or where its says if log is turn on then keep the search on database
-
Sep 2, 2022MirazMacStudios AuthorFile: src/controllers/Site/SiteController.php
This is the code that does this:
$logSearches = (int) get_option('search_log'
;
if ($logSearches) {
$queryModel = new QueryModel;
$db = $queryModel->db();
$time = time();
$stmt = $db->prepare("INSERT INTO {$queryModel->getTable()} ( query_term, created_at, updated_at ) VALUES ( :term, :ctime, :utime ) ON DUPLICATE KEY UPDATE query_count = query_count + 1, updated_at = {$time};"
;
$stmt->bindValue(':term', limit_string(sp_strip_tags($query), 250), PDO::PARAM_STR);
$stmt->bindValue(':ctime', $time, PDO::PARAM_INT);
$stmt->bindValue(':utime', $time, PDO::PARAM_INT);
$stmt->execute();
}
I'm sorry but I can't provide any much more guidance than this you or a developer have to figure out the rest. Thanks -
Sep 2, 2022josepham PurchasedOk. Thanks
-
Aug 26, 2022josepham PurchasedI have come back to point out some things - For the past few weeks i have try to find the issue that cause sleeping process to remain open on MySQL but i never found it, have come to two conclusion either this script was not built to handle too much traffic or their is an extension used that keep the mysql processes open because even if you try to kill the process from the database the process remain active and you get an error. I think even the session saved on var folder can cause this too as imagine you have 2000 people at the same time searching and all the 2000 session saved at the same time and not cleared after user left. I have a script that delete the session after some time but i think this should not be done on search script anyway i dont know much about session but if the is a way to disable session it will be good. Another issue i think can be cause by googlebot, the sitemap on the script is telling google to recrawl the page daily and if you have more than 10,000 search a day this mean googlebot will hit your site 10,000 times a day my site have more than 100,000 search a day and sitemap tell google to recrawl the typed keyword everyday.. You can see the logic. I have 103 split sitemap that is 1000 for each sitemap. I try to disable the log search function but this will not help as google already have the pages on search result . Log story short am trying to find the way to kill sleeping mysql process that remain open if anyone have an idea just post it - View 3 more replies
-
Aug 28, 2022josepham PurchasedThere is more issue like this - https://programmierfrage.com/items/1040-too-many-connection-in-php-pdo-exception
-
Aug 28, 2022MirazMacStudios AuthorThe script doesn't limit or use this. The script can't do anything to prevent this. The simple concept is, the more your visitor is the more MySQL connections there will be. Your linked article literally says it's determined by the:
set global max_connection=2000;
Flag on server side. Meaning you need to optimize MySQL on the server side. -
Aug 28, 2022josepham PurchasedI dont have a permission to change this but i try to add mysqli_close(); in the end of the file i dont think is going to solve this but i will keep looking for solution.
-
Aug 16, 2022josepham PurchasedThis use to work oky but now it open a lot of database mysql process untile i exceeded the limit of the server, i try to disable the log but it doesn't work i try everything but its seem the script start these process without any use please can you point out where in the script php start database mysql process or did you close the process on that file on not active or not used. - View 16 more replies
-
Aug 16, 2022josepham PurchasedI try it few weeks ago and now its at 179,390
-
Aug 16, 2022josepham Purchasedit use to be 2 millions queres
-
Aug 16, 2022MirazMacStudios AuthorI bet that has something to do with it. Your MySQL server is simply struggling to manage that much of data. My suggestion would be to clear the entire table. And stop logging the searches.
Information
| Category | Scripts & Code / PHP Scripts / Search |
| First release | 25 October 2020 |
| Last update | 7 February 2024 |
| Software version | PHP 7.0, PHP 7.1, PHP 7.2, PHP 7.3, PHP 7.4 |
| Files included | .php, .css, Layered .png, Javascript .js |
| Tags | responsive |
