<?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>ItHowTo.ro &#187; Php</title>
	<atom:link href="http://www.ithowto.ro/category/web-programming/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ithowto.ro</link>
	<description>Blog about IT realated stuff by WSS</description>
	<lastBuildDate>Tue, 06 Jul 2010 16:35:28 +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>Error:  data.dircontent is undefined [***] plugins/Archiv/php/fileLoader.php?file=javascript 165 tinymce archiv</title>
		<link>http://www.ithowto.ro/2010/03/error-data-dircontent-is-undefined-pluginsarchivphpfileloader-phpfilejavascript-165-tinymce-archiv/</link>
		<comments>http://www.ithowto.ro/2010/03/error-data-dircontent-is-undefined-pluginsarchivphpfileloader-phpfilejavascript-165-tinymce-archiv/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 07:54:18 +0000</pubDate>
		<dc:creator>gkoo</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[Archiv]]></category>
		<category><![CDATA[tinyMce]]></category>

		<guid isPermaLink="false">http://www.ithowto.ro/?p=133</guid>
		<description><![CDATA[I really needed a file and image manager plugin for tinyMCE. As most of you know the official tinyMCE file manager isn&#8217;t free so after a few searches i ran over Archiv. Archiv is a very nice and free image manager. You can find the official website here.
The plugin is easy to integrate but a [...]]]></description>
			<content:encoded><![CDATA[<p>I really needed a file and image manager plugin for tinyMCE. As most of you know the official tinyMCE file manager isn&#8217;t free so after a few searches i ran over Archiv. Archiv is a very nice and free image manager. You can find the official website <a href="http://archiv.pwnd.nl/" target="_blank">here</a>.</p>
<p>The plugin is easy to integrate but a little tricky to configure. There are 2 places where you need to edit:</p>
<p>1) The tinyMCE init function where you&#8217;ll have to add:</p>
<p><em>tinyMCE.init({<br />
mode : &#8220;textareas&#8221;,<br />
theme : &#8220;advanced&#8221;,<br />
plugins : &#8220;Archiv&#8221;,<br />
Archiv_settings_file : &#8220;/abs/path/to/config.php&#8221;,<br />
theme_advanced_buttons1_add : &#8220;Archiv_files,Archiv_images&#8221;<br />
});</em><br />
2) The config file of the plugin in which the paths are required to be full paths not relative but i&#8217;ve tricked them like this:</p>
<p><em># full path to upload files to and show files from<br />
&#8216;upload_path&#8217;            =&gt; $_SERVER['DOCUMENT_ROOT']. &#8216;uploaded/&#8217;,<br />
# full URI to upload directory<br />
&#8216;upload_uri&#8217;            =&gt; &#8216;http://&#8217;. $_SERVER['HTTP_HOST']. &#8216;/uploaded/&#8217;,</em></p>
<p>This should get you up and running. Tune the rest of the config options to suit your needs and enjoy this wonderful plugin. Many thanks to the authors.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ithowto.ro/2010/03/error-data-dircontent-is-undefined-pluginsarchivphpfileloader-phpfilejavascript-165-tinymce-archiv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo: write circular text with php and gd</title>
		<link>http://www.ithowto.ro/2009/03/howto-write-circular-text-with-php-and-gd/</link>
		<comments>http://www.ithowto.ro/2009/03/howto-write-circular-text-with-php-and-gd/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 10:20:14 +0000</pubDate>
		<dc:creator>radone</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[circular text]]></category>
		<category><![CDATA[gd]]></category>

		<guid isPermaLink="false">http://www.ithowto.ro/?p=77</guid>
		<description><![CDATA[I had a project in which I had to generate an image based on a string. The problem was that the text had to be displayed circulary. After hours of internet searching I&#8217;ve came across http://www.phpgd.com and found this piece of code which did the job quite nicely.
&#60;?php
$text = &#8220;Around and around around and around [...]]]></description>
			<content:encoded><![CDATA[<p>I had a project in which I had to generate an image based on a string. The problem was that the text had to be displayed circulary. After hours of internet searching I&#8217;ve came across <a href="http://www.phpgd.com" target="_blank">http://www.phpgd.com</a> and found this piece of code which did the job quite nicely.</p>
<p>&lt;?php</p>
<p>$text = &#8220;Around and around around and around and around &#8220;;</p>
<p>$image = imagecreatetruecolor(400,400);<br />
$white = imagecolorallocate($image,255,255,255);<br />
imagefill($image,0,0,$white);<br />
$red = imagecolorallocate($image,255,0,0);</p>
<p>$degrees = (360/strlen($text));</p>
<p>for ($i=0;$i&lt;strlen($text);$i++) {</p>
<p>$a = ($degrees*$i)+180;</p>
<p>$cos = cos(deg2rad($a));<br />
$sin = sin(deg2rad($a));<br />
$x = 0;<br />
$y = 180;<br />
$xt = round($cos*($x) &#8211; $sin*($y));<br />
$yt = round($sin*($x) + $cos*($y));<br />
imagettftext($image,20,180-($a),200+$xt,200+$yt,$red,&#8221;fonts/arial.ttf&#8221;,$text[$i]);</p>
<p>}</p>
<p>header(&#8220;Content-type: image/jpeg&#8221;);<br />
imagejpeg($image,&#8221;",100);<br />
imagedestroy($image);</p>
<p>?&gt;</p>
<p>Here is the direct link to the script <a href="http://www.phpgd.com/scripts.php?script=25" target="_blank">http://www.phpgd.com/scripts.php?script=25</a>. You might look through the site because there are other many interesting scripts which may come useful in your projects.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ithowto.ro/2009/03/howto-write-circular-text-with-php-and-gd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo: Create Picture Thumbnails with PHP and GD</title>
		<link>http://www.ithowto.ro/2009/01/howto-create-picture-thumbnails-with-php-and-gd/</link>
		<comments>http://www.ithowto.ro/2009/01/howto-create-picture-thumbnails-with-php-and-gd/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 18:35:21 +0000</pubDate>
		<dc:creator>gkoo</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[php thumbnails gd]]></category>

		<guid isPermaLink="false">http://www.ithowto.ro/?p=42</guid>
		<description><![CDATA[Hi, first of all I&#8217;d like to wish you all a Happy New Year. Hope you enjoyed your holidays, because I know most of us are now behind the desks again, working.
Now, here&#8217;s a nice PHP plugin you can use to generate thumbnails in PHP. It&#8217;s called phpThumb and you can get it from phpthumb.sourceforge.net.
First [...]]]></description>
			<content:encoded><![CDATA[<p>Hi, first of all I&#8217;d like to wish you all a Happy New Year. Hope you enjoyed your holidays, because I know most of us are now behind the desks again, working.</p>
<p>Now, here&#8217;s a nice PHP plugin you can use to generate thumbnails in PHP. It&#8217;s called phpThumb and you can get it from <a href="http://sourceforge.net/projects/phpthumb/"><strong></strong></a><strong><a title="Php Thumb" href="http://phpthumb.sourceforge.net/" target="_blank">phpthumb.sourceforge.net</a>.</strong></p>
<p>First of all take note that this plugin uses the <strong><a title="GD Graphics Library" href="http://www.boutell.com/gd/">GD</a> </strong>or <strong><a title="ImageMagick" href="http://www.imagemagick.org/">ImageMagick</a> </strong>library so be sure you have at least one of them installed on your server/host. I&#8217;m using GD and it works just fine. ImageMagick has some extra features that I didn&#8217;t need, so be sure to check the official site for more details.</p>
<p><strong>How To use phpThumb:</strong></p>
<p>Copy the contents of the plugin somwhere in your site&#8217;s directory ( eg. /lib/phpThumb/ )</p>
<p>Rename the <strong>phpThumb.config.php.default</strong> to <strong>phpThumb.config.php</strong>. I didn&#8217;t modify this config at all but you might take a look inside it if you&#8217;d like to setup various parameters.</p>
<p>Having that done you can easily generate thumbnails like this:</p>
<p><em>&lt;img src=&#8221;lib/phpthumb/phpThumb.php?src=<strong>nameofthefile.jpg</strong>&amp;w=150&amp;h=50&amp;zc=1&#8243;  alt =&#8221;someText&#8221; /&gt;</em></p>
<p><strong>w </strong>stands for width of course and <strong>h </strong>stands for height. <strong>zc </strong>means zoomCrop.</p>
<p>The plugin has a lot of other options and tweaks to play with, check&#8217;em out <a title="Functions of phpThumb" href="http://phpthumb.sourceforge.net/demo/demo/phpThumb.demo.demo.php" target="_blank">here</a>.</p>
<p>Enjoy</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ithowto.ro/2009/01/howto-create-picture-thumbnails-with-php-and-gd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
