<?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>Şimşek Mert &#187; PHP</title>
	<atom:link href="http://www.simsekmert.com/wp/category/web-programlama/php-web-programlama/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.simsekmert.com/wp</link>
	<description>Kişisel Web Sayfası</description>
	<lastBuildDate>Thu, 13 Jan 2011 09:10:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>FPDF Türkçe Fontlar</title>
		<link>http://www.simsekmert.com/wp/2010/11/fpdf-turkce-fontlar/</link>
		<comments>http://www.simsekmert.com/wp/2010/11/fpdf-turkce-fontlar/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 22:07:41 +0000</pubDate>
		<dc:creator>Şimşek Mert</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Programlama]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[fpdf]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[türkçe]]></category>

		<guid isPermaLink="false">http://www.simsekmert.com/wp/?p=136</guid>
		<description><![CDATA[FPDF, php ile  pdf e dönüştürme aracı olarak kullanılan bir sınıftır. Fakat bu sınıf kullanılırken karşılaşılan en büyük sorunlardan birisi Türkçe karakter sorunudur.
Aşağıdaki linkte FPDF için kendi yaptığım Türkçe fontları bulabilirsiniz. arial_tr ve arial_tr_bold&#8230; Kolay gelsin
Fontları indirmek için tıklayın&#8230;
]]></description>
			<content:encoded><![CDATA[<p>FPDF, php ile  pdf e dönüştürme aracı olarak kullanılan bir sınıftır. Fakat bu sınıf kullanılırken karşılaşılan en büyük sorunlardan birisi Türkçe karakter sorunudur.</p>
<p><span id="more-136"></span>Aşağıdaki linkte FPDF için kendi yaptığım Türkçe fontları bulabilirsiniz. arial_tr ve arial_tr_bold&#8230; Kolay gelsin</p>
<p><a class="alignleft" title="Türkçe Fontlar" href="http://www.simsekmert.com/wp/files/turkce_fontlar.rar" target="_self">Fontları indirmek için tıklayın&#8230;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.simsekmert.com/wp/2010/11/fpdf-turkce-fontlar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fast, Effective PHP Compression</title>
		<link>http://www.simsekmert.com/wp/2010/07/fast-effective-php-compression/</link>
		<comments>http://www.simsekmert.com/wp/2010/07/fast-effective-php-compression/#comments</comments>
		<pubDate>Sat, 24 Jul 2010 14:15:35 +0000</pubDate>
		<dc:creator>Şimşek Mert</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Programlama]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.simsekmert.com/wp/?p=132</guid>
		<description><![CDATA[PHP compression is an excellent method of conserving bandwidth and  reducing client download times. We have already discussed an excellent  method for CSS compression, and in this article we share a super-easy technique for compressing all PHP content without editing a single file.
Using two PHP files and two corresponding lines of .htaccess, it [...]]]></description>
			<content:encoded><![CDATA[<p>PHP compression is an excellent method of conserving bandwidth and  reducing client download times. We have already discussed an excellent  method for <a href="http://perishablepress.com/press/2006/10/23/compressed-css-compression/">CSS compression</a>, and in this article we share a super-easy technique for compressing all PHP content without editing a single file.</p>
<p>Using two PHP files and two corresponding lines of .<code>htaccess</code>, it is possible to compress your PHP files via <a title="The gzip Home Page" href="http://www.gzip.org/">gzip-encoding</a>.  Browsers and other user-agents capable of interpreting gz-encoded data  will employ the compressed content, while other user-agents will utilize  the content uncompressed.</p>
<p><span id="more-132"></span></p>
<p><span id="more-341"> </span></p>
<p>Before we begin, it is important to determine if your  server employs output buffering. If so, it may not be necessary to  compress content via this method. Also, this PHP compression technique  requires PHP version 4.0.5 or better.</p>
<p>Now, create two PHP files, &#8220;gzip_start.php&#8221; and &#8220;gzip_stop&#8221;. Open gzip_start.php and add this:</p>
<pre style="overflow: hidden; width: 525px; display: block;"><code>&lt;?php
   ob_start("ob_gzhandler");
?&gt;</code></pre>
<p>Then, open gzip_stop.php and add this:</p>
<pre style="overflow: hidden; width: 525px; display: block;"><code>&lt;?php
   ob_flush();
?&gt;</code></pre>
<p>Save and upload both files to a convenient location on your  server. The first file instructs the server to begin output buffering  via gz-encoding. The second file instructs the server to transmit the  buffered content to the user-agent, assuming it sends a header  indicating its ability to process gzipped data.</p>
<p>Finally, we need a way to include first file at the  beginning of each PHP document and the second file at the end of each  PHP document. Rather than manually adding <code>include()</code> or <code>require()</code> functions to every PHP document, we will summon the mysterious powers of .<code>htaccess</code> to do it all automatically. Simply add the following lines to your .<code>htaccess</code> file:</p>
<pre style="overflow: hidden; width: 525px; display: block;"><code># dual file includes for PHP compression
php_value  auto_prepend_file  /specify/full/path/to/gzip_start.php
php_value  auto_append_file   /specify/full/path/to/gzip_stop.php</code></pre>
<p>Edit the path in each line, save and upload the .<code>htaccess</code> file to your server. These two lines will ensure proper inclusion of  both files to every PHP document subject to their influence (i.e., the  containing directory and all subdirectories). The <code>auto_prepend_file</code> function literally prepends data, while the <code>auto_append_file</code> function, well, you get the idea..</p>
<h3>Alternate Method</h3>
<p>For an even easier PHP-compression method, simply place the following code before the (X)HTML content in any PHP script:</p>
<pre style="overflow: hidden; z-index: 99; position: relative; width: 525px; display: block;"><code>&lt;?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?&gt;</code></pre>
<p>In this case, the <code>ob_flush()</code> command is  unnecessary as PHP inherently flushes the buffer. The script delivers  gzipped content to capable browsers and uncompressed content to  incapable browsers. It’s a win-win!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simsekmert.com/wp/2010/07/fast-effective-php-compression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server, PHP and Truncating Text</title>
		<link>http://www.simsekmert.com/wp/2010/06/sql-server-php-and-truncating-text/</link>
		<comments>http://www.simsekmert.com/wp/2010/06/sql-server-php-and-truncating-text/#comments</comments>
		<pubDate>Sun, 20 Jun 2010 19:45:42 +0000</pubDate>
		<dc:creator>Şimşek Mert</dc:creator>
				<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[truncate]]></category>

		<guid isPermaLink="false">http://www.simsekmert.com/wp/?p=130</guid>
		<description><![CDATA[PHP and SQL Server are a powerful combination, however sometimes data stored in a text type column is truncated for no apparent reason after 4096 characters. Here&#8217;s how to fix the problem.

PHP can work with a large number of database systems, most common of  which is MySQL. However, SQL Server is a very poweful [...]]]></description>
			<content:encoded><![CDATA[<p>PHP and SQL Server are a powerful combination, however sometimes data stored in a text type column is truncated for no apparent reason after 4096 characters. Here&#8217;s how to fix the problem.</p>
<p><span id="more-130"></span></p>
<p>PHP can work with a large number of database systems, most common of  which is MySQL. However, SQL Server is a very poweful alternative to  MySQL, and well worth considering for larger projects.</p>
<p>However, settings for the mssql extension in PHP can easily be  overlooked, resulting in strange behaviour. One of the most unusual  problems I encountered on a recent project was that every time text was  pulled from a column of type &#8220;text&#8221;, it was truncated at around 4000  characters.</p>
<p>If you are experiencing a similar problem, there are a few ways to  work around it.</p>
<p>You need to increase the maximum size of a text column to be returned  from SQL Server by PHP. You can do this with a simple SQL query:</p>
<p><code>SET TEXTSIZE 2147483647</code></p>
<p>Which you can run with the following PHP (best run just after you  make a connection).</p>
<p><code>mssql_query("SET TEXTSIZE 2147483647");</code></p>
<p>A better way to work around the issue is to change the &#8220;textlimit&#8221;  and &#8220;textsize&#8221; settings within php.ini, like so:</p>
<p><code>mssql.textlimit = 2147483647 mssql.textsize = 2147483647</code></p>
<p>In the above examples, I have used &#8220;2147483647&#8243; (number of bytes) for  the value. You don&#8217;t need to set it this high necessarily, however  there is no real harm in doing so.</p>
<p>And why does this not happen with ASP? When you use Microsoft&#8217;s SQL  Server ODBC driver and OLE DB Provider, textsize is automatically set to  2147483647 when a connection is made.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simsekmert.com/wp/2010/06/sql-server-php-and-truncating-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

