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




Home / Scripts & Code / PHP Scripts / Search

Based - Google CSE PHP Search Engine Script
The Ultimate PHP Search Engine Script Built On Google CSE




176 Support questions or comments
Please login or create an account to post a question or comment.
-
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.
-
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.
-
Aug 14, 2022rufatkiu PurchasedHow can I custom results page design?
- View 1 more reply
-
Aug 14, 2022rufatkiu PurchasedI want to design the UI like ,is it possible?https://github.com/Ashwin-op/Google-Clone
-
Aug 14, 2022MirazMacStudios AuthorSorry but I'm not a designer and the linked item is a different ecosystem entirely. Any customizations must be made by you or a developer that you hired.
-
Aug 14, 2022rufatkiu PurchasedOk, thanks
-
Aug 12, 2022Beandi PurchasedHello,
An error occurred while loading the administration interface.
Apache error log: "malformed header from script 'thumb.php': Bad header: Cache-Control, referer: https://seen.hu/dashboard/gallery"
And I want to ask:
The information cards are always displayed in English (wikipedia). I want to rewrite the wikipedia link, where can I do it? (I want to use this: https://hu.wikipedia.org/)
THX for support!
Bea
- View 3 more replies
-
Aug 12, 2022MirazMacStudios AuthorStrange. I'm using the same PHP version on Apache server, but I can't recreate your issue.
Please download this thumb.php file: https://drive.google.com/file/d/1qmo4eskuiBfgKD2TOb2Ve3Z4uz6bKiJw/view?usp=sharing
And replace the current thumb.php with it.
And then go to: Dashboard > Settings > Debugging
and enable "Flush Cache" then click Run Actions.
And see if the issue is still present or not.
-
Aug 12, 2022Beandi PurchasedOk. THX for the support!
Nice, it works.
Haven nice day
-
Aug 12, 2022MirazMacStudios AuthorGlad it solved your issue. Stay safe.
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 |