<?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>Neith Studio &#187; PHP</title>
	<atom:link href="http://www.neithstudio.com/category/programming/php-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.neithstudio.com</link>
	<description>Read about web development, programming, technology, PHP, MySql, Linux, Apache, MSSQL and more</description>
	<lastBuildDate>Thu, 07 Jul 2011 05:21:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Google Map API for PHP</title>
		<link>http://www.neithstudio.com/programming/google-map-api-for-php/</link>
		<comments>http://www.neithstudio.com/programming/google-map-api-for-php/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 10:03:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.neithstudio.com/?p=21</guid>
		<description><![CDATA[I had request from one client to create Google Map on one website, with database of almost 200 000 locations. Depending on filter criteria, it should be possible to show up to 800 locations on the map(this limitation is due to Google API). Locations haven&#8217;t contained geo codes(coordinates).
It would be possible to use Google API [...]]]></description>
			<content:encoded><![CDATA[<p>I had request from one client to create Google Map on one website, with database of almost 200 000 locations. Depending on filter criteria, it should be possible to show up to 800 locations on the map(this limitation is due to Google API). Locations haven&#8217;t contained geo codes(coordinates).<br />
It would be possible to use Google API using address, but their geo coding service is so fast, and imagine how that would work for 800 locations. So, we decided first to convert addresses into geo codes. This can be easily done by google geocoding service, which was done as batch process. We had to run this service few days, because large number of locations and Google request limitation.</p>
<p>Once this is done, next step was to show those locations on map. For this we used Google Map API for PHP developed by Monte Ohrt (<a href='http://www.phpinsider.com/php/code/GoogleMapAPI/' rel='nofollow external'>Google Map API for PHP</a>). Their library contain one file-class, with very good examples/documentation, so we were able to integrate into our website very fast. It was also easy to integrate with smarty templates we used.</p>
<p>So, the reason why we avoided direct coding in javascript, is mainly because smarty code would become unreadable with few loops, few condition checking, which look much more natural if done in PHP.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neithstudio.com/programming/google-map-api-for-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TcPdf PHP Library</title>
		<link>http://www.neithstudio.com/programming/php-programming/tcpdf-php-library/</link>
		<comments>http://www.neithstudio.com/programming/php-programming/tcpdf-php-library/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 07:54:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.neithstudio.com/?p=13</guid>
		<description><![CDATA[I worked on one project with many different reports that had to be created. And in addition to html reports, client wanted to have pdf options, so his customers could download pdf version of report.
PHP build-in libraries for PDF creation, haven&#8217;t satisfy our needs, because we had much tabular data, and many different tables, so [...]]]></description>
			<content:encoded><![CDATA[<p>I worked on one project with many different reports that had to be created. And in addition to html reports, client wanted to have pdf options, so his customers could download pdf version of report.<br />
PHP build-in libraries for PDF creation, haven&#8217;t satisfy our needs, because we had much tabular data, and many different tables, so it would take too much time to setup all these width/heights with block elements that those libraries offer.<br />
I checked some additional libraries too, and even some popular libraries like fpdf haven&#8217;t had support for tables.</p>
<p>Then I found one excellent library called tcpdf, which have great support for tables, different fonts. You can use html tags to create layouts, tables, blocks, define fonts, add images, so if you need really good tool, I greatly recommend this library. It is free library, and you can find many examples on their website.</p>
<p>However, I had to use fpdf library in same project, because we need to create Avery labels in pdf file, so user can print on sticker paper for example. This, of course could be done with TcPdf off course, but because it would take maybe whole day, so setup layout, we decided to use fpdf. It is not good idea to use two different libraries for same thing, but this was client request. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.neithstudio.com/programming/php-programming/tcpdf-php-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

