<?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>Web Developer &#8211; VeriTeknik</title>
	<atom:link href="https://www.veriteknik.net.tr/en/category/knowledge_base/programm-in/web-developer/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.veriteknik.net.tr/en/</link>
	<description>VeriTeknik Bilişim &#124; VeriTeknik Bilişim</description>
	<lastBuildDate>Sun, 25 Nov 2012 00:12:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Simple LDAP Class for PHP</title>
		<link>https://www.veriteknik.net.tr/en/simple-ldap-class-for-php/</link>
					<comments>https://www.veriteknik.net.tr/en/simple-ldap-class-for-php/#respond</comments>
		
		<dc:creator><![CDATA[ckaraca]]></dc:creator>
		<pubDate>Sun, 25 Nov 2012 00:12:55 +0000</pubDate>
				<category><![CDATA[LDAP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Developer]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=652</guid>

					<description><![CDATA[<p>In this post, i&#8217;m gonna explain how to connect to a LDAP server via using PHP. First i wanna talk about some definitions; LDAP means Lightweight Directory Access Protocol. As you can understand from it&#8217;s name, it is a database which uses directory-tree based structure. It&#8217;s used by OpenLDAP, Sun Directory Server, Microsoft Active Directory [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/simple-ldap-class-for-php/">Simple LDAP Class for PHP</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this post, i&#8217;m gonna explain how to connect to a LDAP server via using PHP.</p>
<p>First i wanna talk about some definitions;</p>
<p><strong>LDAP</strong> means Lightweight Directory Access Protocol.</p>
<p>As you can understand from it&#8217;s name, it is a database which uses directory-tree based structure.</p>
<p>It&#8217;s used by OpenLDAP, Sun Directory Server, Microsoft Active Directory and such directory services.</p>
<p><strong>LDIF</strong> means LDAP Data Interchange Format.</p>
<p>You can easily execute LDAP queries using ldif files. For example;</p>
<pre class="brush: powershell; gutter: true; first-line: 1">dn: cn=John Doe,dc=example,dc=com
cn: John Doe
givenName: John
sn: Doe
telephoneNumber: +1 888 555 6789
telephoneNumber: +1 888 555 1232
mail: john@example.com
Manager: cn=Jane Doe,dc=example,dc=com
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: top</pre>
<p>You can see some other terms(actually attributes) in the LDAP query above. Such as dn: Distinguished Name, cn: Common Name, sn: Surname.</p>
<p>I&#8217;ll give more information about LDAP later in another post.</p>
<p><strong>PHP LDAP Functions</strong></p>
<p>PHP has it&#8217;s own LDAP functions by it&#8217;s own. But i&#8217;ve decided to write a class for easier access to these functions.</p>
<p>First, you have to include our class below.</p>
<pre class="brush: php; gutter: true; first-line: 1">&lt;?php 

class LDAP{

    public  $ldapserver = "99.245.56.89";
    public  $ldapport = "389";
    public  $basedn = "cn=admin,dc=web-sistem,dc=com";
    public  $basepass = "yourldap_password"; 

	function connect($server,$port){

		echo "Connecting to LDAP Server..."; 
		$connection = ldap_connect($server,$port);  // must be a valid LDAP server!	
		ldap_set_option($connection, LDAP_OPT_PROTOCOL_VERSION, 3);

		// PHP Reference says there is no control of connection status in OpenLDAP 2.x.x
		// So we'll use binding function to check connection status.

		return $connection;

	}

	function bind($connection,$basedn,$basepass){

		echo "&lt;br&gt;&lt;br&gt;Binding...&lt;br&gt;";  
		$ldaprdn  = $basedn;    // ldap rdn or dn 
		$ldappass = $basepass;  // associated password
		$bind = ldap_bind($connection, $ldaprdn, $ldappass);

		if ($bind) { 
			echo "LDAP bind successful...";

		} else { 
			echo "LDAP bind failed..."; 
		}
	}

	function search($connection, $searchdn, $filter, $attributes = array()){

		$sr = ldap_search($connection, $searchdn, $filter, $attributes);

		if ($sr) {
			echo 'Search Succeeded. Getting Entries...&lt;br&gt;';

	        echo "Number of entires returned:  " . ldap_count_entries($connection, $sr) . "&lt;br /&gt;";

	        $info = ldap_get_entries($connection, $sr);

	        echo "Data for " . $info["count"] . " items returned:&lt;p&gt;\n";

			print_r($info);
			echo '&lt;hr&gt;&lt;br&gt;';

		} else {
			echo 'Search Failed.&lt;br&gt;';
		}
	}

	function addRecord($connection, $adddn, $record){

	    $addProcess = ldap_add($connection, $adddn, $record);

	    if($addProcess){
	        echo "Entry added&lt;br&gt;";
			echo '&lt;hr&gt;&lt;br&gt;';
	    } else {
	    	echo "Please check your data&lt;br&gt;";
			echo '&lt;hr&gt;&lt;br&gt;';
	    }
	}

	function modifyRecord($connection, $modifydn, $record){
		$modifyProcess = ldap_modify($connection, $modifydn, $record);
	    if($modifyProcess){
	        echo "Entry modified&lt;br&gt;";
			echo '&lt;hr&gt;&lt;br&gt;';
	    } else {
	    	echo "Please check your data&lt;br&gt;";
			echo '&lt;hr&gt;&lt;br&gt;';
	    }
	}

	function deleteRecord($connection, $dn, $recursive = false){
	    echo "Deleting Record...&lt;br&gt;";

	    if($recursive == false){
	    	echo 'Entry: ' . $dn . ' deleted.';
	        return(ldap_delete($connection, $dn));
	    } else {

	        // Search for child entries	        
	        $sr = ldap_list($connection, $dn, "ObjectClass=*", array(""));
	        $info = ldap_get_entries($connection, $sr);

	        for($i=0;$i&lt;$info['count'];$i++){
	            // Recursive delete child entries - using myldap_delete to recursive deletion
	            $result = myldap_delete($connection, $info[$i]['dn'], $recursive);
	            if(!$result){
	                // return status code if deletion fails.
	                return($result);
	            }
	        }
			// Delete top dn
			echo 'Entry: ' . $dn . ' deleted.';
	        return(ldap_delete($connection, $dn));
	    }
	}

	function close($connection){
		echo '&lt;hr&gt;&lt;br&gt;';
	    echo "Closing connection";
	    ldap_close($connection);
	}

}

?&gt;</pre>
<p>And then you may want to initialize and use our class. Usage is so simple.</p>
<pre class="brush: php; gutter: true; first-line: 1">&lt;?php

	require_once('class.ldap.php');

	$ldap = new LDAP();

	// Connect to LDAP Server  - connect(ldap_server, port)
	$connection = $ldap-&gt;connect($ldap-&gt;ldapserver,$ldap-&gt;ldapport);

	// Bind with LDAP instance
	$ldap-&gt;bind($connection,'cn=admin,dc=web-sistem,dc=com','yourldap_password');

	echo '&lt;hr&gt;&lt;br&gt;';

	// Search LDAP directory

	// Search with a wildcard
	$ldap-&gt;search($connection,'o=hosting,dc=web-sistem,dc=com','vd=*');

	// Search with no attributes specified	
	$ldap-&gt;search($connection,'o=hosting,dc=web-sistem,dc=com','vd=plugged.in');

	// Search with attributes (attributes must be an array)

	$ldap-&gt;search($connection,'o=hosting,dc=web-sistem,dc=com','vd=web-sistem.com', array('custID'));

	// Prepare data to insert

	// Please change the record entry as required by your company directory structure

	$insert_data['objectclass'][0] = "top";
	$insert_data['objectclass'][1] = "VirtualDomain";

	$insert_data["accountActive"] = "TRUE";
	$insert_data["delete"] = "FALSE";
	$insert_data["lastChange"] = "103";
	$insert_data["vd"] = "plugged.in";
	$insert_data["adminID"] = "3";
	$insert_data["custID"] = "2";
	$insert_data["editAV"] = "FALSE";
	$insert_data["maxAlias"] = "20";
	$insert_data["maxMail"] = "22";
	$insert_data["maxQuota"] = "300";
	$insert_data["postfixTransport"] = "maildrop:";

	// LDAP Insert DN		
	$addDN = "vd=plugged.in,o=hosting,dc=web-sistem,dc=com";
	$ldap-&gt;addRecord($connection,$addDN,$insert_data);

	// Prepare data to modify

	// Please change the record entry as required by your company directory structure

	$modify_data["adminID"] = "3213";
	$modify_data["custID"] = "2441";

	// LDAP Modify DN		
	$modifyDN = "vd=plugged.in,o=hosting,dc=web-sistem,dc=com";
	$ldap-&gt;modifyRecord($connection,$modifyDN,$modify_data);

	// Delete LDAP record	(third parameter is "Recursive")
	$deleteDN = "vd=plugged.in,o=hosting,dc=web-sistem,dc=com";
	$ldap-&gt;deleteRecord($connection,$deleteDN,true);

	//Close LDAP Connection
	$ldap-&gt;close($connection);
?&gt;</pre>
<p><strong>That&#8217;s all for now.</strong></p>
<p><strong>If you have questions or advices about this class please leave a message in comments section.</strong></p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/simple-ldap-class-for-php/">Simple LDAP Class for PHP</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/simple-ldap-class-for-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">652</post-id>	</item>
		<item>
		<title>PHP : Convert/Replace Short Open Tags</title>
		<link>https://www.veriteknik.net.tr/en/php-convert-open-tags/</link>
					<comments>https://www.veriteknik.net.tr/en/php-convert-open-tags/#respond</comments>
		
		<dc:creator><![CDATA[Mustafa Emre Aydın]]></dc:creator>
		<pubDate>Tue, 19 Jun 2012 11:53:19 +0000</pubDate>
				<category><![CDATA[httpd]]></category>
		<category><![CDATA[LINUX Help]]></category>
		<category><![CDATA[Programmin]]></category>
		<category><![CDATA[Web Developer]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[tag]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=557</guid>

					<description><![CDATA[<p>Using short open tags, such as &#60;? on your PHP code is not so clever. Other than the debate going on whether short open tags won&#8217;t be available on PHP6 or not, it is possible that your shared hosting has disabled it for some reason, or you might have to migrate your code sometime somewhere [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/php-convert-open-tags/">PHP : Convert/Replace Short Open Tags</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Using short open tags, such as <strong>&lt;?</strong> on your PHP code is not so clever. Other than the debate going on whether short open tags won&#8217;t be available on PHP6 or not, it is possible that your shared hosting has disabled it for some reason, or you might have to migrate your code sometime somewhere it is not supported any longer. For the sake of clean coding, always use clean tags. Other than obeying the standards for technical reasons, it is also essential for developing clean, easy-to-read codes for yourself, other people reading your code or even the IDE/Framework you&#8217;re using!</p>
<p>If somehow, this article is the first place you&#8217;ve realized you should stop using short open tags, it&#8217;s never too late! Below is a find / sed line to convert your php files from short open tags to &#8220;normal&#8221; ones. This line works pretty good but it&#8217;s always a good idea to backup your scripts before doing such massive automated injection.</p>
<pre class="brush: bash; gutter: true; first-line: 1">find . -iname '*.php' -type f -print0 |xargs -0 sed -i -e 's/&lt;? /&lt;?php /g' -e 's/&lt;?\/\//&lt;?php \/\//g' -e 's/&lt;?\/\*/&lt;?php \/\*/g' -e 's/&lt;?\=/&lt;?php echo/g'</pre>
<p>Don&#8217;t forget that this line will look for <strong>*.php</strong> files under the <strong>current</strong> folder due to the <strong>dot</strong> (<strong>.</strong>) which is the first argument of the <strong>find</strong> command.<br />
It will apply these replaces:</p>
<table>
<tbody>
<tr>
<td><strong>From</strong></td>
<td><strong>To</strong></td>
</tr>
<tr>
<td>&lt;?</td>
<td>&lt;?php</td>
</tr>
<tr>
<td>&lt;?//</td>
<td>&lt;?php //</td>
</tr>
<tr>
<td>&lt;?/*</td>
<td>&lt;?php /*</td>
</tr>
<tr>
<td>&lt;?=</td>
<td>&lt;?php echo</td>
</tr>
</tbody>
</table>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/php-convert-open-tags/">PHP : Convert/Replace Short Open Tags</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/php-convert-open-tags/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">557</post-id>	</item>
		<item>
		<title>CSS3 Borders &#8211; What&#8217;s New ?</title>
		<link>https://www.veriteknik.net.tr/en/css3-borders-whats-new/</link>
					<comments>https://www.veriteknik.net.tr/en/css3-borders-whats-new/#respond</comments>
		
		<dc:creator><![CDATA[ckaraca]]></dc:creator>
		<pubDate>Thu, 17 May 2012 21:58:56 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Developer]]></category>
		<category><![CDATA[border-image]]></category>
		<category><![CDATA[border-radius]]></category>
		<category><![CDATA[box-shadow]]></category>
		<category><![CDATA[cascading stylesheets]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[web]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=413</guid>

					<description><![CDATA[<p>Hi there, it&#8217;s me again. Today, i&#8217;m gonna talk about CSS3 border features. By using CSS3, you can; create rounded borders (it was really a big problem cause we had to use images or junk javascript libraries) box shadows (it was also a big problem) use image files as border without using a design program [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/css3-borders-whats-new/">CSS3 Borders &#8211; What&#8217;s New ?</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hi there, it&#8217;s me again.</p>
<p>Today, i&#8217;m gonna talk about CSS3 border features.</p>
<p>By using CSS3, you can;</p>
<ul>
<li>create rounded borders (it was really a big problem cause we had to use images or junk javascript libraries)</li>
<li>box shadows (it was also a big problem)</li>
<li>use image files as border</li>
</ul>
<p>without using a design program like Adobe Photoshop or some javascript plugins.</p>
<h4>CSS3 Rounded Corners</h4>
<p>In CSS3 creating rounded borders is a piece of cake. Just apply following css code to your elements.</p>
<p>Usage:</p>
<pre class="brush: css; gutter: true; first-line: 1">-webkit-border-radius: 5px 5px 3px 3px;
-moz-border-radius: 5px 5px 3px 3px;
 -ms-border-radius: 5px 5px 3px 3px;
 -o-border-radius: 5px 5px 3px 3px;
border-radius: 5px 5px 3px 3px;</pre>
<p>Syntax:</p>
<blockquote><p>
border-radius: top-left-radius, top-right-radius, bottom-right-radius, bottom-left-radius;
</p></blockquote>
<p>You can see there are various codes for each browser.</p>
<p>Briefly,</p>
<p>Mozilla Firefox needs &#8220;-moz-&#8221; prefix,</p>
<p>Chrome and Safari needs &#8220;-webkit-&#8221; prefix,</p>
<p>Opera needs &#8220;-o-&#8221; prefix,</p>
<p>Internet Explorer needs &#8220;-ms-&#8221; prefix (will be deprecated),</p>
<p>and for last &#8220;border-radius&#8221; code is used for general CSS3 border styling.</p>
<h4>CSS3 Box Shadow</h4>
<p>With CSS3 you can use &#8220;box-shadow&#8221; property to add shadow to boxes.</p>
<p>Usage:</p>
<pre class="brush: css; gutter: true; first-line: 1">-webkit-box-shadow: 0 0 5px #d5d5d5;
 -moz-box-shadow: 0 0 5px #d5d5d5;
 box-shadow: 0 0 5px #d5d5d5;</pre>
<p>Syntax:</p>
<blockquote><p>box-shadow: <em>h-shadow v-shadow blur spread color</em> inset;</p></blockquote>
<p>As you see, you should add &#8220;-webkit-&#8221; prefix for Safari and Chrome, &#8220;-moz-&#8221; prefix for Mozilla Firefox and lastly &#8220;box-shadow&#8221; property for general CSS3 Shadow effects.</p>
<p>Syntax:</p>
<blockquote><p>box-shadow: (horizontal dimension of shadow, can be a negative value), (vertical dimension of shadow, also can be a negative value), (shadow blur amount), (hex code of shadow color)</p></blockquote>
<h4>CSS3 Border Image</h4>
<p>To create border images for your elements, you should use border-image property.</p>
<p>Right now, Internet Explorer does not support border-image property.</p>
<p>For other browsers you should add prefixes just like other border properties(ex. &#8220;-moz-&#8220;, &#8220;-webkit-&#8220;, &#8220;-o-&#8220;)</p>
<p>Usage:</p>
<pre class="brush: css; gutter: true; first-line: 1">-moz-border-image:url(border.png) 30 30 round;
 -webkit-border-image:url(border.png) 30 30 round;
 -o-border-image:url(border.png) 30 30 round;
 border-image:url(border.png) 30 30 round;</pre>
<p>Syntax:</p>
<blockquote><p>border-image: <em>source slice width outset repeat</em>;</p></blockquote>
<p>border-image-source: the path to the border image file.</p>
<p>border-image-slice: inward offsets of the border image.</p>
<p>border-image-width: width of border image.</p>
<p>border-image-outset: the amount by which the border image area extends beyond the border box.</p>
<p>border-image-repeat: type of repetition, repeat, round, stretch.</p>
<p>That&#8217;s all for now.</p>
<p>I&#8217;ll tell more about javascript equivalents of CSS border properties for fallback support  and other CSS3 features later.</p>
<p>Enjoy your CSS3 styles, and have a nice day.</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/css3-borders-whats-new/">CSS3 Borders &#8211; What&#8217;s New ?</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/css3-borders-whats-new/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">413</post-id>	</item>
		<item>
		<title>Why should I use a MVC Framework ?</title>
		<link>https://www.veriteknik.net.tr/en/why-should-i-use-a-mvc-framework/</link>
					<comments>https://www.veriteknik.net.tr/en/why-should-i-use-a-mvc-framework/#respond</comments>
		
		<dc:creator><![CDATA[ckaraca]]></dc:creator>
		<pubDate>Mon, 18 Jul 2011 13:13:47 +0000</pubDate>
				<category><![CDATA[Web Developer]]></category>
		<category><![CDATA[frameworks]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[php]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=200</guid>

					<description><![CDATA[<p>You wanna create a web based application, you have ideas but you have no idea about where to start. That is exactly where you should start using a MVC Framework. So what is a MVC Framework ? MVC is a programming pattern that comes with 3 components. M -&#62; Model V -&#62; View C -&#62; [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/why-should-i-use-a-mvc-framework/">Why should I use a MVC Framework ?</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>You wanna create a web based application, you have ideas but you have no idea about where to start.</p>
<p>That is exactly where you should start using a MVC Framework.</p>
<p><strong>So what is a MVC Framework ?</strong></p>
<p>MVC is a programming pattern that comes with 3 components.</p>
<p>M -&gt; Model</p>
<p>V -&gt; View</p>
<p>C -&gt; Controller</p>
<p>Let me explain briefly.</p>
<p><strong>Model </strong>contains database related functions. So in your <strong>Model</strong> component, you can execute database queries, read, write or any type of process that you may want.</p>
<p><strong>View </strong>contains design elements. In another way, <strong>User Interface</strong> of your application.</p>
<p><strong>Controller </strong>contains all procedures. So in your <strong>Controller</strong> you can use algorithms, logical processes and all the other things you wanna do.</p>
<p>&nbsp;</p>
<p><strong>Why should I use a MVC Framework ?</strong></p>
<p>Here are some benefits of using MVC Frameworks;</p>
<ul>
<li>Faster programming</li>
<li>Faster execution (cause it&#8217;ll be object oriented)</li>
<li>Modular applications</li>
<li>Layered programming (you can do the model parts and a colleague can do the controller parts)</li>
<li>Ready to collaborated work structure</li>
</ul>
<div><strong>OK, I wanna use a MVC Framework, which one should I prefer ?</strong></div>
<div>There are plenty of MVC Frameworks on the Internet. But I could suggest a few;</div>
<div>
<ul>
<li>CodeIgniter</li>
<li>CakePHP (inspired by Ruby on Rails)</li>
<li>YII (for large-scale web applications)</li>
<li>PHPDevShell</li>
<li>Symfony</li>
<li>Akelos</li>
<li>Prado</li>
<li>and of course Zend Framework</li>
</ul>
</div>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/why-should-i-use-a-mvc-framework/">Why should I use a MVC Framework ?</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/why-should-i-use-a-mvc-framework/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">200</post-id>	</item>
		<item>
		<title>FLV doesn&#8217;t work in Firefox with Hotlink Protection</title>
		<link>https://www.veriteknik.net.tr/en/flv-doesnt-work-in-firefox-with-hotlink-protection/</link>
					<comments>https://www.veriteknik.net.tr/en/flv-doesnt-work-in-firefox-with-hotlink-protection/#respond</comments>
		
		<dc:creator><![CDATA[Cevdet Kaymaz]]></dc:creator>
		<pubDate>Thu, 05 May 2011 11:09:19 +0000</pubDate>
				<category><![CDATA[Web Developer]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=170</guid>

					<description><![CDATA[<p>I cannot get my flv files to load in Firefox but they work perfect in IE… My system is running apache. Finally, I found out that the problem was related with the Hotlink Protection implemented by some hosts through the .htaccess file and the fact that Flash does not send the referrer and Firefox does [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/flv-doesnt-work-in-firefox-with-hotlink-protection/">FLV doesn&#8217;t work in Firefox with Hotlink Protection</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I cannot get my flv files to load in Firefox but they work perfect in IE… My system is running apache.<br />
Finally, I found out that the problem was related with the Hotlink Protection implemented by some hosts through the .htaccess file and the fact that Flash does not send the referrer and Firefox does not add it to the request.<br />
After some research I found this workaround adding some lines in the .htaccess file:</p>
<blockquote><p>RewriteEngine on<br />
RewriteCond %{HTTP_REFERER} !^$<br />
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yoursite.com [NC]
RewriteRule \.(jpg|jpeg|png|gif|flv)$ &#8211; [NC,F,L]</blockquote>
<p>This solved my problem.</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/flv-doesnt-work-in-firefox-with-hotlink-protection/">FLV doesn&#8217;t work in Firefox with Hotlink Protection</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/flv-doesnt-work-in-firefox-with-hotlink-protection/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">170</post-id>	</item>
	</channel>
</rss>
