<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PHP &#8211; bunyam.in</title>
	<atom:link href="https://bunyam.in/category/software/php/feed/" rel="self" type="application/rss+xml" />
	<link>https://bunyam.in</link>
	<description>Easy Solutions</description>
	<lastBuildDate>Wed, 16 Apr 2025 11:06:52 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8</generator>
	<item>
		<title>Class &#8220;Twig_Cache_Null&#8221; not found error</title>
		<link>https://bunyam.in/class-twig_cache_null-not-found-error/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 17 Jun 2019 11:50:52 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software]]></category>
		<guid isPermaLink="false">https://bunyam.in/?p=63</guid>

					<description><![CDATA[Exceptions are made by hands , some times they are not clear at all. Today i faced one of this &#8220;Twig_Cache_Null&#8221; that was meanless. After Several inspections i found solution: Empty and readable cache folder is not exists. You need to create at &#8220;config&#8221; described: new Twig_Environment($loader, array( &#8216;cache&#8217; =&#62;... <a href="https://bunyam.in/class-twig_cache_null-not-found-error/">Read more &#187;</a>]]></description>
										<content:encoded><![CDATA[
<p>Exceptions are made by hands , some times they are not clear at all. </p>



<p>Today i faced one of this &#8220;Twig_Cache_Null&#8221; that was meanless.</p>



<p>After Several inspections i found solution:</p>



<span id="more-63"></span>



<p>Empty and readable cache folder is not exists. You need to create at &#8220;config&#8221; described:</p>



<ol class="wp-block-list"><li><strong>new</strong> Twig_Environment($loader, <strong>array</strong>(</li><li>            &#8216;cache&#8217; =&gt; &#8216;cache/twig&#8217;,</li><li>            &#8216;debug&#8217; =&gt; &#8230;,</li><li>        )</li></ol>



<p>Happy coding.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Install Nginx for Cpanel &#038; EasyApache4</title>
		<link>https://bunyam.in/install-nginx-cpanel-easyapache4/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 15 Feb 2017 17:06:11 +0000</pubDate>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">http://bunyam.in/?p=44</guid>

					<description><![CDATA[Some Nginx softwares were purely usable for Easy Apache Such as nginxcp , but until EA4 has deployed that is unable to work. There are lots of error returns when you trying to set up such as cp: cannot stat ‘/var/cpanel/templates/apache2/vhost default’: No such file or d irectory or cp: cannot... <a href="https://bunyam.in/install-nginx-cpanel-easyapache4/">Read more &#187;</a>]]></description>
										<content:encoded><![CDATA[<p>Some Nginx softwares were purely usable for Easy Apache Such as nginxcp , but until EA4 has deployed that is unable to work.</p>
<p>There are lots of error returns when you trying to set up such as<br />
<code>cp: cannot stat ‘/var/cpanel/templates/apache2/vhost default’: No such file or d irectory</code><br />
or<br />
<code>cp: cannot create regular file `/var/cpanel/apps/nginxcp.conf': No such file or directory</code><br />
<span id="more-44"></span></p>
<p>There is a solution for now: engintron<br />
easy to install</p>
<pre>
cd /  
rm -f engintron.sh  
wget --no-check-certificate https://raw.githubusercontent.com/engintron/engintron/master/engintron.sh  
bash engintron.sh install
</pre>
<p>Happy codings 🙂</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to detect request is XHR or Ajax</title>
		<link>https://bunyam.in/how-to-dedect-request-is-xhr-or-ajax/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 29 Sep 2015 09:14:57 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[dedect ajax]]></category>
		<category><![CDATA[dedect xhr]]></category>
		<category><![CDATA[get request]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[security]]></category>
		<guid isPermaLink="false">http://bunyam.in/?p=25</guid>

					<description><![CDATA[Detecting XHR is a small trick for security procedure nowadays. Today most web application is detecting by bots or spiders. Some of them looking for your security issues. You can handle it with simple moves.  If you filter just like below, there is a one more layer for your critical... <a href="https://bunyam.in/how-to-dedect-request-is-xhr-or-ajax/">Read more &#187;</a>]]></description>
										<content:encoded><![CDATA[<p>Detecting XHR is a small trick for security procedure nowadays.</p>
<p>Today most web application is detecting by bots or spiders. Some of them looking for your security issues. You can handle it with simple moves. <span id="more-25"></span></p>
<p>If you filter just like below, there is a one more layer for your critical procedures. Because lots of spiders or crawlers does not have skill for set request type.</p>
<p>[php]<br />
/* XHR-AJAX check */<br />
if(!empty($_SERVER[&#8216;HTTP_X_REQUESTED_WITH&#8217;]) &amp;&amp; strtolower($_SERVER[&#8216;HTTP_X_REQUESTED_WITH&#8217;]) == &#8216;xmlhttprequest&#8217;){<br />
/*Your Procedures or processes */<br />
}else{<br />
/*Here is a direct call or bot */<br />
die(&#8216;you shall not pass!&#8217;);<br />
}<br />
[/php]<br />
Simple.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
