I would like to execute my own custom php script from within the Mage core code (app/code/core/Mage/CatalogSearch/Block/Result.php).
I tried using include("custom_file.php") but received an error:
Warning: Mage_CatalogSearch_Block_Result::include(../custom/query_fetch.php) [mage-catalogsearch-block-result.include]: failed to open stream: No such file or directory in /home/liquncom/public_html/app/code/core/Mage/CatalogSearch/Block/Result.php on line 79
How can I execute the script successfully? Please note, this custom script is completely independent from Magento code, and echos a string.
Thanks in advance.