Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Quick Question: How to execute a custom php script from within Mage core code
 
itzik
Member
 
Total Posts:  36
Joined:  2008-07-21
 

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
Trace:

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.

 
Magento Community Magento Community
Magento Community
Magento Community
 
itzik
Member
 
Total Posts:  36
Joined:  2008-07-21
 

still trying to figure it out...any ideas?

 
Magento Community Magento Community
Magento Community
Magento Community
 
davion
Jr. Member
 
Total Posts:  18
Joined:  2008-05-03
 

it’s talks
“No such file or directory”
may be file access permisions?

I’ve made it and it works fine for me

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top