<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged general</title>
<link>https://www.question2answer.org/qa/tag/general</link>
<description>Powered by Question2Answer</description>
<item>
<title>General Query About How plugins work and their executions plan.</title>
<link>https://www.question2answer.org/qa/44211/general-query-about-how-plugins-work-their-executions-plan</link>
<description>

&lt;p&gt;Hi,
&lt;br&gt;I was reading through the docs/codes and to understand the the execution plan for plugins. Though I grabbed a basic understanding of plugins run via eval command.
&lt;br&gt;
&lt;br&gt;I am unsure if the entire code of Q2A is run via eval, it would be great if someone elaborate.
&lt;br&gt;[UPDATE]: No Only Plugins run via eval.
&lt;br&gt;
&lt;br&gt;It would be great if someone can explain in detail/or direct to a tutorial, about how the plugins are executed via eval methods and the stability issues, if any. Also has anyone tried a different approach to execute plugins other than eval.
&lt;br&gt;
&lt;br&gt;Thanks
&lt;br&gt;
&lt;br&gt;&lt;span style=&quot;background-color:#FFFF00&quot;&gt;---- Answer ---&lt;/span&gt;
&lt;br&gt;So far reading thru the code i understood.
&lt;br&gt;1) First All the plugins files are loaded in qa_load_plugin_files function and within this a map of plugins, overrides &amp;nbsp;etc are loaded in the memory
&lt;br&gt;2) Then the function 'qa_load_override_files' is invoked in which the plugin the functions are renamed and loaded in the memory via eval function.
&lt;br&gt;Since i was not able to debug my code in eclipse due to the eval function, i made the following code 'qa_eval_from_file' function to help me debug the code. So far the code changes seem to be stable, &lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;span style=&quot;background-color:#FFFF00&quot;&gt;i wish if the experts can review and suggest mistakes.&lt;/span&gt;&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;$path_parts = pathinfo($filename);
&lt;br&gt;$newFile = $path_parts['dirname'].&quot;/&quot;.$path_parts['filename'].&quot;-evaled.&quot;.$path_parts['extension'];
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if ( !file_exists($newFile)){ // This can interfere if a new plugin is loaded. Think of a work around.
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$handle = fopen($newFile, &quot;w+&quot;);
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fwrite($handle, $eval);
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fclose($handle);
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;chmod($newFile, 0777)
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;include $newFile;&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/44211/general-query-about-how-plugins-work-their-executions-plan</guid>
<pubDate>Tue, 10 Mar 2015 01:31:28 +0000</pubDate>
</item>
<item>
<title>compiled without multibyte string support</title>
<link>https://www.question2answer.org/qa/15371/compiled-without-multibyte-string-support</link>
<description>

&lt;p&gt;
	In the General tab of Admin panel I got a message just below the Site Language as follows -&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;The installed version of PHP was compiled without multibyte string support. Searching will be less effective for non-Roman characters.&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	what does this error means and how to solve it.&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/15371/compiled-without-multibyte-string-support</guid>
<pubDate>Mon, 28 May 2012 05:57:22 +0000</pubDate>
</item>
<item>
<title>General question: Is somebody really using the &quot;favorite&quot; feature?</title>
<link>https://www.question2answer.org/qa/14896/general-question-somebody-really-using-the-favorite-feature</link>
<description>and if yes: what kind of scenario makes it useful?&lt;br /&gt;
&lt;br /&gt;
and if no: How to switch it off?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/14896/general-question-somebody-really-using-the-favorite-feature</guid>
<pubDate>Fri, 11 May 2012 04:39:36 +0000</pubDate>
</item>
<item>
<title>OK mark of neat_urls(clean_urls) setting of V1.0.1</title>
<link>https://www.question2answer.org/qa/1115/ok-mark-of-neat_urls-clean_urls-setting-of-v1-0-1</link>
<description>In my environmet, OK is not displayed to top of two choices.&lt;br /&gt;
But, two choices that OK is not displayed work definitely both.&lt;br /&gt;
The phenomenon is the same regardless of setting of RewriteBase of .htaccess.&lt;br /&gt;
&lt;br /&gt;
My environment)&lt;br /&gt;
Uniform Server [4.3-Mona]&lt;br /&gt;
&lt;a href=&quot;http://sourceforge.net/projects/miniserver/files/Uniform%20Server/&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/projects/miniserver/files/Uniform%20Server/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Apache: 2.2.11&lt;br /&gt;
MySQL: 5.1.35-community&lt;br /&gt;
PHP: 5.2.10&lt;br /&gt;
mod_rewrite: enabled</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/1115/ok-mark-of-neat_urls-clean_urls-setting-of-v1-0-1</guid>
<pubDate>Tue, 25 May 2010 20:31:44 +0000</pubDate>
</item>
</channel>
</rss>