<?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/tag/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: test if suPHP works with your apache installation.</title>
		<link>http://www.ithowto.ro/2010/03/howto-test-if-suphp-works-with-your-apache-installation/</link>
		<comments>http://www.ithowto.ro/2010/03/howto-test-if-suphp-works-with-your-apache-installation/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 18:49:12 +0000</pubDate>
		<dc:creator>gkoo</dc:creator>
				<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[linux administration]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Php]]></category>

		<guid isPermaLink="false">http://www.ithowto.ro/?p=119</guid>
		<description><![CDATA[I wrote this small script to verify that my suPHP was infact working on the server.
Copy &#38; paste this in to a file test.php on your server and run it on your favourite browser.
If the current script owner is the same as the user that php runs as, than suPHP works.
&#60;?php
echo &#8216;Current script owner: &#8216; [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote this small script to verify that my suPHP was infact working on the server.</p>
<p>Copy &amp; paste this in to a file test.php on your server and run it on your favourite browser.</p>
<p>If the current script owner is the same as the user that php runs as, than suPHP works.</p>
<p><em>&lt;?php</p>
<p>echo &#8216;Current script owner: &#8216; . get_current_user(). &#8216;&lt;br&gt;&#8217;;<br />
echo &#8216;UID:&#8217; . getmyuid() . &#8216;&lt;br&gt;&#8217;;<br />
echo &#8216;GID:&#8217; . getmygid() . &#8216;&lt;br&gt;&#8217;;<br />
echo &#8216;PID:&#8217; . getmypid() . &#8216;&lt;br&gt;&#8217;;<br />
echo &#8216;&lt;br&gt;&#8217;;<br />
echo &#8220;PHP runs under the user: [" . system('whoami') . "]&lt;br&gt;&#8221;;<br />
</em></p>
<p><em>?&gt;</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ithowto.ro/2010/03/howto-test-if-suphp-works-with-your-apache-installation/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>
	</channel>
</rss>
