<?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>iWebDevel &#187; PHP</title>
	<atom:link href="http://iwebdevel.com/category/coding/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://iwebdevel.com</link>
	<description>Tutorials, howtos and step by step instructions to help you make the perfect web 2.0 website.</description>
	<lastBuildDate>Sun, 28 Mar 2010 15:50:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>SQLite, MySQL, PHP: Ternary operator (IF() statement) in MySQL and SQLite</title>
		<link>http://iwebdevel.com/2010/02/03/sqlite-mysql-php-ternary-operator-if-statement-in-mysql-and-sqlite/</link>
		<comments>http://iwebdevel.com/2010/02/03/sqlite-mysql-php-ternary-operator-if-statement-in-mysql-and-sqlite/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 19:46:36 +0000</pubDate>
		<dc:creator>Dragos</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SQLite]]></category>
		<category><![CDATA[case when then end]]></category>
		<category><![CDATA[if statement]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[ternary operator]]></category>

		<guid isPermaLink="false">http://iwebdevel.com/?p=363</guid>
		<description><![CDATA[While working on a proxy checker tool for one of my projects, I was struggling on how to execute a conditional query on my SQLite database to update a column only if its value is greater than 0 (it would be pointless in my case to let the script update the column with negative values). [...]


Related posts:<ol><li><a href='http://iwebdevel.com/2009/06/08/wordpress-easily-reset-your-account-password-using-mysql-and-php/' rel='bookmark' title='Permanent Link: WordPress: Easily Reset Your Account Password Using MySQL and PHP'>WordPress: Easily Reset Your Account Password Using MySQL and PHP</a></li>
<li><a href='http://iwebdevel.com/2009/06/23/php-error-call-to-a-member-function-fetch_assoc-on-a-non-object-in/' rel='bookmark' title='Permanent Link: PHP Error: Call to a member function fetch_assoc() on a non-object in'>PHP Error: Call to a member function fetch_assoc() on a non-object in</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fiwebdevel.com%2F2010%2F02%2F03%2Fsqlite-mysql-php-ternary-operator-if-statement-in-mysql-and-sqlite%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fiwebdevel.com%2F2010%2F02%2F03%2Fsqlite-mysql-php-ternary-operator-if-statement-in-mysql-and-sqlite%2F&amp;style=normal&amp;service=is.gd" height="61" width="50" /><br />
			</a>
		</div>
<p>While working on a proxy checker tool for one of my projects, I was struggling on how to execute a conditional query on my SQLite database to update a column only if its value is greater than 0 (it would be pointless in my case to let the script update the column with negative values).</p>
<p>In Mysql one would do like this (we use the ternary operator <strong>IF(to_check_expression&gt;0,expression1,expression2)</strong>):</p>
<p><code><strong>update table_name set column_name=IF((column_name-1)&gt;0,(column_name-1),0)</strong></code></p>
<p>However, in SQLite this method will not work. Instead I had to use the <strong>case when (condition) then expression1 else expression2 end</strong> method.</p>
<p>The above query in MySQL can be rewritten like this in SQLite:</p>
<p><code><strong>update table_name set column_name=case when (column_name-1)&gt;0 then (column_name-1) else 0 end</strong></code></p>
<p>That&#8217;s it. I hope it helps someone!</p>


<div class="shr-bookmarks shr-bookmarks-expand">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://iwebdevel.com/2010/02/03/sqlite-mysql-php-ternary-operator-if-statement-in-mysql-and-sqlite/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://iwebdevel.com/2010/02/03/sqlite-mysql-php-ternary-operator-if-statement-in-mysql-and-sqlite/&amp;title=SQLite%2C+MySQL%2C+PHP%3A+Ternary+operator+%28IF%28%29+statement%29+in+MySQL+and+SQLite" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://iwebdevel.com/2010/02/03/sqlite-mysql-php-ternary-operator-if-statement-in-mysql-and-sqlite/&amp;title=SQLite%2C+MySQL%2C+PHP%3A+Ternary+operator+%28IF%28%29+statement%29+in+MySQL+and+SQLite" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://iwebdevel.com/2010/02/03/sqlite-mysql-php-ternary-operator-if-statement-in-mysql-and-sqlite/&amp;title=SQLite%2C+MySQL%2C+PHP%3A+Ternary+operator+%28IF%28%29+statement%29+in+MySQL+and+SQLite&amp;desc=While%20working%20on%20a%20proxy%20checker%20tool%20for%20one%20of%20my%20projects%2C%20I%20was%20struggling%20on%20how%20to%20execute%20a%20conditional%20query%20on%20my%20SQLite%20database%20to%20update%20a%20column%20only%20if%20its%20value%20is%20greater%20than%200%20%28it%20would%20be%20pointless%20in%20my%20case%20to%20let%20the%20script%20update%20the%20column%20with%20negative%20values%29.%0D%0A%0D%0AIn%20Mysql%20o" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=SQLite%2C+MySQL%2C+PHP%3A+Ternary+operator+%28IF%28%29+statement%29+in+MySQL+and+SQLite&amp;body=Link: http://iwebdevel.com/2010/02/03/sqlite-mysql-php-ternary-operator-if-statement-in-mysql-and-sqlite/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A While%20working%20on%20a%20proxy%20checker%20tool%20for%20one%20of%20my%20projects%2C%20I%20was%20struggling%20on%20how%20to%20execute%20a%20conditional%20query%20on%20my%20SQLite%20database%20to%20update%20a%20column%20only%20if%20its%20value%20is%20greater%20than%200%20%28it%20would%20be%20pointless%20in%20my%20case%20to%20let%20the%20script%20update%20the%20column%20with%20negative%20values%29.%0D%0A%0D%0AIn%20Mysql%20o" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://iwebdevel.com/2010/02/03/sqlite-mysql-php-ternary-operator-if-statement-in-mysql-and-sqlite/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://iwebdevel.com/2010/02/03/sqlite-mysql-php-ternary-operator-if-statement-in-mysql-and-sqlite/&amp;bm_description=SQLite%2C+MySQL%2C+PHP%3A+Ternary+operator+%28IF%28%29+statement%29+in+MySQL+and+SQLite&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://iwebdevel.com/2010/02/03/sqlite-mysql-php-ternary-operator-if-statement-in-mysql-and-sqlite/&amp;title=SQLite%2C+MySQL%2C+PHP%3A+Ternary+operator+%28IF%28%29+statement%29+in+MySQL+and+SQLite" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://iwebdevel.com/2010/02/03/sqlite-mysql-php-ternary-operator-if-statement-in-mysql-and-sqlite/&amp;title=SQLite%2C+MySQL%2C+PHP%3A+Ternary+operator+%28IF%28%29+statement%29+in+MySQL+and+SQLite" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://iwebdevel.com/2010/02/03/sqlite-mysql-php-ternary-operator-if-statement-in-mysql-and-sqlite/&amp;title=SQLite%2C+MySQL%2C+PHP%3A+Ternary+operator+%28IF%28%29+statement%29+in+MySQL+and+SQLite" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://iwebdevel.com/2010/02/03/sqlite-mysql-php-ternary-operator-if-statement-in-mysql-and-sqlite/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=SQLite%2C+MySQL%2C+PHP%3A+Ternary+operator+%28IF%28%29+statement%29+in+MySQL+and+SQLite+-+http://iwebdevel.com/2010/02/03/sqlite-mysql-php-ternary-operator-if-statement-in-mysql-and-sqlite/&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://iwebdevel.com/2009/06/08/wordpress-easily-reset-your-account-password-using-mysql-and-php/' rel='bookmark' title='Permanent Link: WordPress: Easily Reset Your Account Password Using MySQL and PHP'>WordPress: Easily Reset Your Account Password Using MySQL and PHP</a></li>
<li><a href='http://iwebdevel.com/2009/06/23/php-error-call-to-a-member-function-fetch_assoc-on-a-non-object-in/' rel='bookmark' title='Permanent Link: PHP Error: Call to a member function fetch_assoc() on a non-object in'>PHP Error: Call to a member function fetch_assoc() on a non-object in</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://iwebdevel.com/2010/02/03/sqlite-mysql-php-ternary-operator-if-statement-in-mysql-and-sqlite/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP: How to download a webpage (aka web scrapping) with PHP</title>
		<link>http://iwebdevel.com/2009/10/03/php-how-to-download-a-webpage-aka-web-scrapping-with-php-fsockopen-file_get_contents-curl-function-download-web-page/</link>
		<comments>http://iwebdevel.com/2009/10/03/php-how-to-download-a-webpage-aka-web-scrapping-with-php-fsockopen-file_get_contents-curl-function-download-web-page/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 08:08:27 +0000</pubDate>
		<dc:creator>Dragos</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[download function]]></category>
		<category><![CDATA[file_get_contents]]></category>
		<category><![CDATA[fsockopen]]></category>
		<category><![CDATA[php download]]></category>
		<category><![CDATA[scrap function]]></category>
		<category><![CDATA[web download]]></category>
		<category><![CDATA[web scrapping]]></category>

		<guid isPermaLink="false">http://iwebdevel.com/?p=249</guid>
		<description><![CDATA[There are many ways of downloading web pages, or web content. Personally I like to use cURL for my web scrapping needs, but sometimes I also use fsockopen and file_get_contents. Here are 3 different functions that will allow you to download web content. cURL: function getData($url) { if($url!='localhost' &#38;&#38; $url!='http://localhost') { $ch=curl_init(); curl_setopt($ch, CURLOPT_URL, $url); [...]


Related posts:<ol><li><a href='http://iwebdevel.com/2009/07/29/javascript-send-function-as-a-parameter-to-another-function-callbacks/' rel='bookmark' title='Permanent Link: JavaScript: Send function as a parameter to another function (callbacks)'>JavaScript: Send function as a parameter to another function (callbacks)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fiwebdevel.com%2F2009%2F10%2F03%2Fphp-how-to-download-a-webpage-aka-web-scrapping-with-php-fsockopen-file_get_contents-curl-function-download-web-page%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fiwebdevel.com%2F2009%2F10%2F03%2Fphp-how-to-download-a-webpage-aka-web-scrapping-with-php-fsockopen-file_get_contents-curl-function-download-web-page%2F&amp;style=normal&amp;service=is.gd" height="61" width="50" /><br />
			</a>
		</div>
<p>There are many ways of downloading web pages, or web content. Personally I like to use <strong>cURL</strong> for my web scrapping needs, but sometimes I also use <strong>fsockopen</strong> and <strong>file_get_contents</strong>.</p>
<p>Here are 3 different functions that will allow you to download web content.</p>
<p><strong>cURL</strong>:</p>
<pre name="code" class="php">function getData($url) {
    if($url!='localhost' &amp;&amp; $url!='http://localhost') {
        $ch=curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
        curl_setopt($ch,CURLOPT_USERAGENT,"Mozilla/6.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.3");
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION,3);
        $result['data']=curl_exec($ch);
        $result['error']=curl_error($ch);
        curl_close($ch);
        return $result;
    }
    else return $result['error']='err';
}</pre>
<p><strong>fsockopen</strong></p>
<pre name="code" class="php">function getData($url) {
    $arr=parse_url($url);
    $fp = fsockopen($arr['host'], 80, $errno, $errstr, 30);
    if(!$fp) {
        return false;
    }else {
    // send headers
        $out = "GET ".fsockopen($arr['host'], 80, $errno, $errstr, 30)." HTTP/1.1\r\n";
        $out .= "Host: ".str_replace('http://'.$arr['host'],'',$url)."\r\n";
        $out .= "User-Agent: FSOCKOPEN\r\n";
        $out .= "Connection: Close\r\n\r\n";
        fwrite($fp, $out);
        while(!feof($fp)) {
            $contents .= fgets($fp, 4096);
        };
        fclose($fp);
        return $contents;
    }
}</pre>
<p><strong>file_get_contents</strong></p>
<pre name="code" class="php">function getData($url) {
return file_get_contents($url);
}</pre>
<p>As you see the easiest way of downloading web content is by using the <strong>file_get_contents</strong> function, but if you need more options, especially if you are working with the headers, then <strong>cURL</strong> is the best way to go for you.</p>


<div class="shr-bookmarks shr-bookmarks-expand">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://iwebdevel.com/2009/10/03/php-how-to-download-a-webpage-aka-web-scrapping-with-php-fsockopen-file_get_contents-curl-function-download-web-page/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://iwebdevel.com/2009/10/03/php-how-to-download-a-webpage-aka-web-scrapping-with-php-fsockopen-file_get_contents-curl-function-download-web-page/&amp;title=PHP%3A+How+to+download+a+webpage+%28aka+web+scrapping%29+with+PHP" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://iwebdevel.com/2009/10/03/php-how-to-download-a-webpage-aka-web-scrapping-with-php-fsockopen-file_get_contents-curl-function-download-web-page/&amp;title=PHP%3A+How+to+download+a+webpage+%28aka+web+scrapping%29+with+PHP" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://iwebdevel.com/2009/10/03/php-how-to-download-a-webpage-aka-web-scrapping-with-php-fsockopen-file_get_contents-curl-function-download-web-page/&amp;title=PHP%3A+How+to+download+a+webpage+%28aka+web+scrapping%29+with+PHP&amp;desc=There%20are%20many%20ways%20of%20downloading%20web%20pages%2C%20or%20web%20content.%20Personally%20I%20like%20to%20use%20cURL%20for%20my%20web%20scrapping%20needs%2C%20but%20sometimes%20I%20also%20use%20fsockopen%20and%20file_get_contents.%0D%0A%0D%0AHere%20are%203%20different%20functions%20that%20will%20allow%20you%20to%20download%20web%20content.%0D%0A%0D%0AcURL%3A%0D%0Afunction%20getData%28%24url%29%20%7B%0D%0A%20%20%20%20if%28" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=PHP%3A+How+to+download+a+webpage+%28aka+web+scrapping%29+with+PHP&amp;body=Link: http://iwebdevel.com/2009/10/03/php-how-to-download-a-webpage-aka-web-scrapping-with-php-fsockopen-file_get_contents-curl-function-download-web-page/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A There%20are%20many%20ways%20of%20downloading%20web%20pages%2C%20or%20web%20content.%20Personally%20I%20like%20to%20use%20cURL%20for%20my%20web%20scrapping%20needs%2C%20but%20sometimes%20I%20also%20use%20fsockopen%20and%20file_get_contents.%0D%0A%0D%0AHere%20are%203%20different%20functions%20that%20will%20allow%20you%20to%20download%20web%20content.%0D%0A%0D%0AcURL%3A%0D%0Afunction%20getData%28%24url%29%20%7B%0D%0A%20%20%20%20if%28" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://iwebdevel.com/2009/10/03/php-how-to-download-a-webpage-aka-web-scrapping-with-php-fsockopen-file_get_contents-curl-function-download-web-page/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://iwebdevel.com/2009/10/03/php-how-to-download-a-webpage-aka-web-scrapping-with-php-fsockopen-file_get_contents-curl-function-download-web-page/&amp;bm_description=PHP%3A+How+to+download+a+webpage+%28aka+web+scrapping%29+with+PHP&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://iwebdevel.com/2009/10/03/php-how-to-download-a-webpage-aka-web-scrapping-with-php-fsockopen-file_get_contents-curl-function-download-web-page/&amp;title=PHP%3A+How+to+download+a+webpage+%28aka+web+scrapping%29+with+PHP" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://iwebdevel.com/2009/10/03/php-how-to-download-a-webpage-aka-web-scrapping-with-php-fsockopen-file_get_contents-curl-function-download-web-page/&amp;title=PHP%3A+How+to+download+a+webpage+%28aka+web+scrapping%29+with+PHP" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://iwebdevel.com/2009/10/03/php-how-to-download-a-webpage-aka-web-scrapping-with-php-fsockopen-file_get_contents-curl-function-download-web-page/&amp;title=PHP%3A+How+to+download+a+webpage+%28aka+web+scrapping%29+with+PHP" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://iwebdevel.com/2009/10/03/php-how-to-download-a-webpage-aka-web-scrapping-with-php-fsockopen-file_get_contents-curl-function-download-web-page/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=PHP%3A+How+to+download+a+webpage+%28aka+web+scrapping%29+with+PHP+-+http://iwebdevel.com/2009/10/03/php-how-to-download-a-webpage-aka-web-scrapping-with-php-fsockopen-file_get_contents-curl-function-download-web-page/&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://iwebdevel.com/2009/07/29/javascript-send-function-as-a-parameter-to-another-function-callbacks/' rel='bookmark' title='Permanent Link: JavaScript: Send function as a parameter to another function (callbacks)'>JavaScript: Send function as a parameter to another function (callbacks)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://iwebdevel.com/2009/10/03/php-how-to-download-a-webpage-aka-web-scrapping-with-php-fsockopen-file_get_contents-curl-function-download-web-page/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress: Best SEO iTranslator for WordPress, get free traffic from fully automated plugin script</title>
		<link>http://iwebdevel.com/2009/09/04/wordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script/</link>
		<comments>http://iwebdevel.com/2009/09/04/wordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 15:30:59 +0000</pubDate>
		<dc:creator>Dragos</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[best seo translator for wordpress]]></category>
		<category><![CDATA[google translate blog posts]]></category>
		<category><![CDATA[multiple languages posts]]></category>
		<category><![CDATA[page translator]]></category>
		<category><![CDATA[posts translate]]></category>
		<category><![CDATA[seo translator]]></category>
		<category><![CDATA[translator]]></category>

		<guid isPermaLink="false">http://iwebdevel.com/?p=216</guid>
		<description><![CDATA[I&#8217;ve just decided to publish my translation plugin for WordPress. It has helped me a lot to get free traffic, so I think other people might find it also useful. == Description == Best SEO iTranslator for WordPress is a translation plugin, fully automated, that will help you get new traffic and at the same [...]


Related posts:<ol><li><a href='http://iwebdevel.com/2009/09/01/wordpress-2-8-not-ready-to-be-installed-with-php-5-3/' rel='bookmark' title='Permanent Link: WordPress 2.8.4: Not ready to be installed with PHP 5.3 ?'>WordPress 2.8.4: Not ready to be installed with PHP 5.3 ?</a></li>
<li><a href='http://iwebdevel.com/2009/11/13/wordpress-version-2-8-6-is-out-make-sure-to-update-your-blog-critical-fixes-exploits-xss-download/' rel='bookmark' title='Permanent Link: WordPress: Version 2.8.6 is out. Make sure to update your blog!'>WordPress: Version 2.8.6 is out. Make sure to update your blog!</a></li>
<li><a href='http://iwebdevel.com/2009/06/08/wordpress-easily-reset-your-account-password-using-mysql-and-php/' rel='bookmark' title='Permanent Link: WordPress: Easily Reset Your Account Password Using MySQL and PHP'>WordPress: Easily Reset Your Account Password Using MySQL and PHP</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fiwebdevel.com%2F2009%2F09%2F04%2Fwordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fiwebdevel.com%2F2009%2F09%2F04%2Fwordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script%2F&amp;style=normal&amp;service=is.gd" height="61" width="50" /><br />
			</a>
		</div>
<p>I&#8217;ve just decided to publish my translation plugin for WordPress. It has helped me a lot to get free traffic, so I think other people might find it also useful.</p>
<h3>== Description ==</h3>
<p>Best SEO iTranslator for WordPress is a translation plugin, fully automated, that will help you get new traffic and at the same time help your readers translate your posts in their native languages (from the available 40 languages). This is a perfect SEO instrument for those who want to get traffic from search engines. Best SEO iTranslator for WordPress generates new translated posts, which are treated by search engines as being new different posts, containing different information.</p>
<h3>== Installation ==</h3>
<p>Upload this plugin in your plugins folder on your host. Enable Best SEO iTranslator for WordPress from the plugin management page.</p>
<h3>== Configuration ==</h3>
<p>From Settings-&gt;BSW iTranslator select the language your blog is written in. On the same page, choose what languages you would like to have your blog posts translated in.</p>
<h3>== Frequently Asked Questions ==</h3>
<h4>= The translation time takes a little bit longer than my blog usually loads. Why? =</h4>
<p>This is normal. This plugin relies on an external website (Google Translate) and the loading time of your translated posts mainly depends on how fast Google will translate your pages. If it takes more than 10 seconds, there must be something wrong with your server. In this case check your host&#8217;s error log to see whether everything is OK with your hosting.</p>
<h4>= &#8220;Please return to this page in some minutes.&#8221; message =</h4>
<p>There has been something wrong with the translation process, or Google temporarily banned your website for excessive queries. Don&#8217;t worry! A 503 Service Temporarily Unavailable message is displayed to both human readers and search bots, informing them that the page is not available at the moment.</p>
<h4>= The cache gets too large in size =</h4>
<p>This is normal. Every page is stored in a cached file, so the next time a request is made for that page, it is quickly fetched from the cache, saving a lot of time and server resources. The cache can grow quickly in size, make sure you have the required space on your server, before activating the plugin.</p>
<h4>= The translated page has a bad/broken layout =</h4>
<p>Usually Google Translate will deliver translated pages in the original format, however it may happen sometimes to get a page with a broken layout. Unfortunately, it is almost impossible to regenerate such broken files automatically.</p>
<h4>= Why does a yellow box appear at the top of my translated page? =</h4>
<p>That box informs the readers that the page they are currently viewing is a translated version and the original source is to be found in a different place (link provided).</p>
<h4>= What is Cache Duration? =</h4>
<p>Cache Duration is the time a cached file can stay on your server before it can be removed with a new one (if obsolete). Best Cache Duration time to set in the plugins settings are higher than 86000 seconds (one day). If you notice that translated pages are displayed correctly and they don&#8217;t need to be replaced, set the Cache Duration to 1 week or more (use the calculator to get the value in seconds: Xdays*24hours*60minutes*60seconds)</p>
<h4>= Best SEO iTranslator for WordPress plugin doesn&#8217;t work =</h4>
<p>First things to check is that the cache folder inside the plugin&#8217;s directory exists and is chmoded to 0755. If that is not the problem you may write a comment message on my blog at  , and I&#8217;ll see what I can do to help you.</p>
<h2>DEMO</h2>
<p>To see this plugin in action, just scroll down to the end of this post and you&#8217;ll see the option to translate the current post. Choose whatever language you want.</p>
<p><strong>Update</strong>: This plugin has been tested with PHP 5.3 . I do not guarantee that it will work with earlier versions of PHP.</p>
<h2>DOWNLOAD</h2>
<p>Download from here: <a href="http://downloads.wordpress.org/plugin/best-seo-itranslator-for-wordpress.zip">Best SEO iTranslator for WordPress</a></p>


<div class="shr-bookmarks shr-bookmarks-expand">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://iwebdevel.com/2009/09/04/wordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://iwebdevel.com/2009/09/04/wordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script/&amp;title=Wordpress%3A+Best+SEO+iTranslator+for+Wordpress%2C+get+free+traffic+from+fully+automated+plugin+script" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://iwebdevel.com/2009/09/04/wordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script/&amp;title=Wordpress%3A+Best+SEO+iTranslator+for+Wordpress%2C+get+free+traffic+from+fully+automated+plugin+script" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://iwebdevel.com/2009/09/04/wordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script/&amp;title=Wordpress%3A+Best+SEO+iTranslator+for+Wordpress%2C+get+free+traffic+from+fully+automated+plugin+script&amp;desc=I%27ve%20just%20decided%20to%20publish%20my%20translation%20plugin%20for%20Wordpress.%20It%20has%20helped%20me%20a%20lot%20to%20get%20free%20traffic%2C%20so%20I%20think%20other%20people%20might%20find%20it%20also%20useful.%0D%0A%3D%3D%20Description%20%3D%3D%0D%0ABest%20SEO%20iTranslator%20for%20Wordpress%20is%20a%20translation%20plugin%2C%20fully%20automated%2C%20that%20will%20help%20you%20get%20new%20traffic%20and%20at%20" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=Wordpress%3A+Best+SEO+iTranslator+for+Wordpress%2C+get+free+traffic+from+fully+automated+plugin+script&amp;body=Link: http://iwebdevel.com/2009/09/04/wordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A I%27ve%20just%20decided%20to%20publish%20my%20translation%20plugin%20for%20Wordpress.%20It%20has%20helped%20me%20a%20lot%20to%20get%20free%20traffic%2C%20so%20I%20think%20other%20people%20might%20find%20it%20also%20useful.%0D%0A%3D%3D%20Description%20%3D%3D%0D%0ABest%20SEO%20iTranslator%20for%20Wordpress%20is%20a%20translation%20plugin%2C%20fully%20automated%2C%20that%20will%20help%20you%20get%20new%20traffic%20and%20at%20" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://iwebdevel.com/2009/09/04/wordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://iwebdevel.com/2009/09/04/wordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script/&amp;bm_description=Wordpress%3A+Best+SEO+iTranslator+for+Wordpress%2C+get+free+traffic+from+fully+automated+plugin+script&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://iwebdevel.com/2009/09/04/wordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script/&amp;title=Wordpress%3A+Best+SEO+iTranslator+for+Wordpress%2C+get+free+traffic+from+fully+automated+plugin+script" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://iwebdevel.com/2009/09/04/wordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script/&amp;title=Wordpress%3A+Best+SEO+iTranslator+for+Wordpress%2C+get+free+traffic+from+fully+automated+plugin+script" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://iwebdevel.com/2009/09/04/wordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script/&amp;title=Wordpress%3A+Best+SEO+iTranslator+for+Wordpress%2C+get+free+traffic+from+fully+automated+plugin+script" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://iwebdevel.com/2009/09/04/wordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Wordpress%3A+Best+SEO+iTranslator+for+Wordpress%2C+get+free+traffic+from+fully+autom%5B..%5D+-+http://iwebdevel.com/2009/09/04/wordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script/&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://iwebdevel.com/2009/09/01/wordpress-2-8-not-ready-to-be-installed-with-php-5-3/' rel='bookmark' title='Permanent Link: WordPress 2.8.4: Not ready to be installed with PHP 5.3 ?'>WordPress 2.8.4: Not ready to be installed with PHP 5.3 ?</a></li>
<li><a href='http://iwebdevel.com/2009/11/13/wordpress-version-2-8-6-is-out-make-sure-to-update-your-blog-critical-fixes-exploits-xss-download/' rel='bookmark' title='Permanent Link: WordPress: Version 2.8.6 is out. Make sure to update your blog!'>WordPress: Version 2.8.6 is out. Make sure to update your blog!</a></li>
<li><a href='http://iwebdevel.com/2009/06/08/wordpress-easily-reset-your-account-password-using-mysql-and-php/' rel='bookmark' title='Permanent Link: WordPress: Easily Reset Your Account Password Using MySQL and PHP'>WordPress: Easily Reset Your Account Password Using MySQL and PHP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://iwebdevel.com/2009/09/04/wordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script/feed/</wfw:commentRss>
		<slash:comments>88</slash:comments>
		</item>
		<item>
		<title>WordPress 2.8.4: Not ready to be installed with PHP 5.3 ?</title>
		<link>http://iwebdevel.com/2009/09/01/wordpress-2-8-not-ready-to-be-installed-with-php-5-3/</link>
		<comments>http://iwebdevel.com/2009/09/01/wordpress-2-8-not-ready-to-be-installed-with-php-5-3/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 19:43:24 +0000</pubDate>
		<dc:creator>Dragos</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://iwebdevel.com/?p=211</guid>
		<description><![CDATA[I&#8217;ve just tried to install WordPress 2.8.4 on my testing machine (PHP 5.3). Right on the installation page a dozen of errors filled my screen, something like: Strict Standards: Declaration of Walker_Page::start_lvl() should be compatible with that of Walker::start_lvl() in /opt/lampp/htdocs/wordpress/wp-includes/classes.php on line 1214 This is not a big issue and it doesn&#8217;t interrupt the [...]


Related posts:<ol><li><a href='http://iwebdevel.com/2009/09/04/wordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script/' rel='bookmark' title='Permanent Link: WordPress: Best SEO iTranslator for WordPress, get free traffic from fully automated plugin script'>WordPress: Best SEO iTranslator for WordPress, get free traffic from fully automated plugin script</a></li>
<li><a href='http://iwebdevel.com/2009/06/08/wordpress-easily-reset-your-account-password-using-mysql-and-php/' rel='bookmark' title='Permanent Link: WordPress: Easily Reset Your Account Password Using MySQL and PHP'>WordPress: Easily Reset Your Account Password Using MySQL and PHP</a></li>
<li><a href='http://iwebdevel.com/2009/06/13/javascript-how-to-validate-email-address-with-javascript/' rel='bookmark' title='Permanent Link: Javascript: How to validate email address with JavaScript?'>Javascript: How to validate email address with JavaScript?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fiwebdevel.com%2F2009%2F09%2F01%2Fwordpress-2-8-not-ready-to-be-installed-with-php-5-3%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fiwebdevel.com%2F2009%2F09%2F01%2Fwordpress-2-8-not-ready-to-be-installed-with-php-5-3%2F&amp;style=normal&amp;service=is.gd" height="61" width="50" /><br />
			</a>
		</div>
<p>I&#8217;ve just tried to install WordPress 2.8.4 on my testing machine (PHP 5.3). Right on the installation page a dozen of errors filled my screen, something like:</p>
<blockquote><p><strong>Strict Standards</strong>:  Declaration of Walker_Page::start_lvl() should be compatible with that of Walker::start_lvl() in <strong>/opt/lampp/htdocs/wordpress/wp-includes/classes.php</strong> on line <strong>1214</strong></p></blockquote>
<p>This is not a big issue and it doesn&#8217;t interrupt the installation, it&#8217;s just that PHP 5.3 has many new changes compared to previous versions of PHP. However, wordpress should still correct those errors, because it doesn&#8217;t look so good to see errors right on the installation page.</p>


<div class="shr-bookmarks shr-bookmarks-expand">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://iwebdevel.com/2009/09/01/wordpress-2-8-not-ready-to-be-installed-with-php-5-3/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://iwebdevel.com/2009/09/01/wordpress-2-8-not-ready-to-be-installed-with-php-5-3/&amp;title=Wordpress+2.8.4%3A+Not+ready+to+be+installed+with+PHP+5.3+%3F" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://iwebdevel.com/2009/09/01/wordpress-2-8-not-ready-to-be-installed-with-php-5-3/&amp;title=Wordpress+2.8.4%3A+Not+ready+to+be+installed+with+PHP+5.3+%3F" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://iwebdevel.com/2009/09/01/wordpress-2-8-not-ready-to-be-installed-with-php-5-3/&amp;title=Wordpress+2.8.4%3A+Not+ready+to+be+installed+with+PHP+5.3+%3F&amp;desc=I%27ve%20just%20tried%20to%20install%20Wordpress%202.8.4%20on%20my%20testing%20machine%20%28PHP%205.3%29.%20Right%20on%20the%20installation%20page%20a%20dozen%20of%20errors%20filled%20my%20screen%2C%20something%20like%3A%0D%0AStrict%20Standards%3A%20%20Declaration%20of%20Walker_Page%3A%3Astart_lvl%28%29%20should%20be%20compatible%20with%20that%20of%20Walker%3A%3Astart_lvl%28%29%20in%20%2Fopt%2Flampp%2Fhtdocs%2Fwordpr" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=Wordpress+2.8.4%3A+Not+ready+to+be+installed+with+PHP+5.3+%3F&amp;body=Link: http://iwebdevel.com/2009/09/01/wordpress-2-8-not-ready-to-be-installed-with-php-5-3/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A I%27ve%20just%20tried%20to%20install%20Wordpress%202.8.4%20on%20my%20testing%20machine%20%28PHP%205.3%29.%20Right%20on%20the%20installation%20page%20a%20dozen%20of%20errors%20filled%20my%20screen%2C%20something%20like%3A%0D%0AStrict%20Standards%3A%20%20Declaration%20of%20Walker_Page%3A%3Astart_lvl%28%29%20should%20be%20compatible%20with%20that%20of%20Walker%3A%3Astart_lvl%28%29%20in%20%2Fopt%2Flampp%2Fhtdocs%2Fwordpr" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://iwebdevel.com/2009/09/01/wordpress-2-8-not-ready-to-be-installed-with-php-5-3/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://iwebdevel.com/2009/09/01/wordpress-2-8-not-ready-to-be-installed-with-php-5-3/&amp;bm_description=Wordpress+2.8.4%3A+Not+ready+to+be+installed+with+PHP+5.3+%3F&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://iwebdevel.com/2009/09/01/wordpress-2-8-not-ready-to-be-installed-with-php-5-3/&amp;title=Wordpress+2.8.4%3A+Not+ready+to+be+installed+with+PHP+5.3+%3F" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://iwebdevel.com/2009/09/01/wordpress-2-8-not-ready-to-be-installed-with-php-5-3/&amp;title=Wordpress+2.8.4%3A+Not+ready+to+be+installed+with+PHP+5.3+%3F" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://iwebdevel.com/2009/09/01/wordpress-2-8-not-ready-to-be-installed-with-php-5-3/&amp;title=Wordpress+2.8.4%3A+Not+ready+to+be+installed+with+PHP+5.3+%3F" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://iwebdevel.com/2009/09/01/wordpress-2-8-not-ready-to-be-installed-with-php-5-3/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Wordpress+2.8.4%3A+Not+ready+to+be+installed+with+PHP+5.3+%3F+-+http://iwebdevel.com/2009/09/01/wordpress-2-8-not-ready-to-be-installed-with-php-5-3/&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://iwebdevel.com/2009/09/04/wordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script/' rel='bookmark' title='Permanent Link: WordPress: Best SEO iTranslator for WordPress, get free traffic from fully automated plugin script'>WordPress: Best SEO iTranslator for WordPress, get free traffic from fully automated plugin script</a></li>
<li><a href='http://iwebdevel.com/2009/06/08/wordpress-easily-reset-your-account-password-using-mysql-and-php/' rel='bookmark' title='Permanent Link: WordPress: Easily Reset Your Account Password Using MySQL and PHP'>WordPress: Easily Reset Your Account Password Using MySQL and PHP</a></li>
<li><a href='http://iwebdevel.com/2009/06/13/javascript-how-to-validate-email-address-with-javascript/' rel='bookmark' title='Permanent Link: Javascript: How to validate email address with JavaScript?'>Javascript: How to validate email address with JavaScript?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://iwebdevel.com/2009/09/01/wordpress-2-8-not-ready-to-be-installed-with-php-5-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP: How to get creation time of file with PHP on Linux machines</title>
		<link>http://iwebdevel.com/2009/09/01/php-how-to-get-creation-time-of-file-with-php-on-linux-machines-filemtime-fileatime-filectime/</link>
		<comments>http://iwebdevel.com/2009/09/01/php-how-to-get-creation-time-of-file-with-php-on-linux-machines-filemtime-fileatime-filectime/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 17:19:37 +0000</pubDate>
		<dc:creator>Dragos</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[file creation time]]></category>
		<category><![CDATA[fileatime]]></category>
		<category><![CDATA[filectime]]></category>
		<category><![CDATA[filemtime]]></category>

		<guid isPermaLink="false">http://iwebdevel.com/?p=207</guid>
		<description><![CDATA[Unfortunately it is not possible to get the creation time of a file on Linux machines. None of the functions fileatime,filemtime or filctime will return the file creation time. Note: Note also that in some Unix texts the ctime of a file is referred to as being the creation time of the file. This is [...]


Related posts:<ol><li><a href='http://iwebdevel.com/2009/06/08/wordpress-easily-reset-your-account-password-using-mysql-and-php/' rel='bookmark' title='Permanent Link: WordPress: Easily Reset Your Account Password Using MySQL and PHP'>WordPress: Easily Reset Your Account Password Using MySQL and PHP</a></li>
<li><a href='http://iwebdevel.com/2009/06/16/php-get-all-files-and-folders-from-a-directory-folder/' rel='bookmark' title='Permanent Link: PHP: Get all files and folders from a directory (folder)'>PHP: Get all files and folders from a directory (folder)</a></li>
<li><a href='http://iwebdevel.com/2009/09/04/wordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script/' rel='bookmark' title='Permanent Link: WordPress: Best SEO iTranslator for WordPress, get free traffic from fully automated plugin script'>WordPress: Best SEO iTranslator for WordPress, get free traffic from fully automated plugin script</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fiwebdevel.com%2F2009%2F09%2F01%2Fphp-how-to-get-creation-time-of-file-with-php-on-linux-machines-filemtime-fileatime-filectime%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fiwebdevel.com%2F2009%2F09%2F01%2Fphp-how-to-get-creation-time-of-file-with-php-on-linux-machines-filemtime-fileatime-filectime%2F&amp;style=normal&amp;service=is.gd" height="61" width="50" /><br />
			</a>
		</div>
<div id="attachment_208" class="wp-caption alignleft" style="width: 161px"><a href="http://iwebdevel.com/wp-content/uploads/2009/09/3131799428_962aba66f1.jpg"><img class="size-full wp-image-208" title="PHP logo" src="http://iwebdevel.com/wp-content/uploads/2009/09/3131799428_962aba66f1.jpg" alt="PHP 5.3 5.4 6 logo" width="151" height="79" /></a><p class="wp-caption-text">PHP 5.3 5.4 6 logo</p></div>
<p>Unfortunately it is not possible to get the creation time of a file on Linux machines. None of the functions <strong>fileatime</strong>,<strong>filemtime</strong> or <strong>filctime</strong> will return the file<br />
creation time.</p>
<blockquote><p><strong>Note</strong>:          Note also that in some Unix texts the ctime of a file is referred to as     being the creation time of the file. This is wrong. There is no creation     time for Unix files in most Unix filesystems. <em>(from php.net)</em></p></blockquote>
<p>In order to solve this issue, you could try to store in a database/file the time when a file is created for later use.</p>


<div class="shr-bookmarks shr-bookmarks-expand">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://iwebdevel.com/2009/09/01/php-how-to-get-creation-time-of-file-with-php-on-linux-machines-filemtime-fileatime-filectime/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://iwebdevel.com/2009/09/01/php-how-to-get-creation-time-of-file-with-php-on-linux-machines-filemtime-fileatime-filectime/&amp;title=PHP%3A+How+to+get+creation+time+of+file+with+PHP+on+Linux+machines" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://iwebdevel.com/2009/09/01/php-how-to-get-creation-time-of-file-with-php-on-linux-machines-filemtime-fileatime-filectime/&amp;title=PHP%3A+How+to+get+creation+time+of+file+with+PHP+on+Linux+machines" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://iwebdevel.com/2009/09/01/php-how-to-get-creation-time-of-file-with-php-on-linux-machines-filemtime-fileatime-filectime/&amp;title=PHP%3A+How+to+get+creation+time+of+file+with+PHP+on+Linux+machines&amp;desc=%0D%0A%0D%0AUnfortunately%20it%20is%20not%20possible%20to%20get%20the%20creation%20time%20of%20a%20file%20on%20Linux%20machines.%20None%20of%20the%20functions%20fileatime%2Cfilemtime%20or%20filctime%20will%20return%20the%20file%0D%0Acreation%20time.%0D%0ANote%3A%20%20%20%20%20%20%20%20%20%20Note%20also%20that%20in%20some%20Unix%20texts%20the%20ctime%20of%20a%20file%20is%20referred%20to%20as%20%20%20%20%20being%20the%20creation%20time%20of" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=PHP%3A+How+to+get+creation+time+of+file+with+PHP+on+Linux+machines&amp;body=Link: http://iwebdevel.com/2009/09/01/php-how-to-get-creation-time-of-file-with-php-on-linux-machines-filemtime-fileatime-filectime/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A %0D%0A%0D%0AUnfortunately%20it%20is%20not%20possible%20to%20get%20the%20creation%20time%20of%20a%20file%20on%20Linux%20machines.%20None%20of%20the%20functions%20fileatime%2Cfilemtime%20or%20filctime%20will%20return%20the%20file%0D%0Acreation%20time.%0D%0ANote%3A%20%20%20%20%20%20%20%20%20%20Note%20also%20that%20in%20some%20Unix%20texts%20the%20ctime%20of%20a%20file%20is%20referred%20to%20as%20%20%20%20%20being%20the%20creation%20time%20of" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://iwebdevel.com/2009/09/01/php-how-to-get-creation-time-of-file-with-php-on-linux-machines-filemtime-fileatime-filectime/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://iwebdevel.com/2009/09/01/php-how-to-get-creation-time-of-file-with-php-on-linux-machines-filemtime-fileatime-filectime/&amp;bm_description=PHP%3A+How+to+get+creation+time+of+file+with+PHP+on+Linux+machines&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://iwebdevel.com/2009/09/01/php-how-to-get-creation-time-of-file-with-php-on-linux-machines-filemtime-fileatime-filectime/&amp;title=PHP%3A+How+to+get+creation+time+of+file+with+PHP+on+Linux+machines" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://iwebdevel.com/2009/09/01/php-how-to-get-creation-time-of-file-with-php-on-linux-machines-filemtime-fileatime-filectime/&amp;title=PHP%3A+How+to+get+creation+time+of+file+with+PHP+on+Linux+machines" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://iwebdevel.com/2009/09/01/php-how-to-get-creation-time-of-file-with-php-on-linux-machines-filemtime-fileatime-filectime/&amp;title=PHP%3A+How+to+get+creation+time+of+file+with+PHP+on+Linux+machines" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://iwebdevel.com/2009/09/01/php-how-to-get-creation-time-of-file-with-php-on-linux-machines-filemtime-fileatime-filectime/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=PHP%3A+How+to+get+creation+time+of+file+with+PHP+on+Linux+machines+-+http://iwebdevel.com/2009/09/01/php-how-to-get-creation-time-of-file-with-php-on-linux-machines-filemtime-fileatime-filectime/&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://iwebdevel.com/2009/06/08/wordpress-easily-reset-your-account-password-using-mysql-and-php/' rel='bookmark' title='Permanent Link: WordPress: Easily Reset Your Account Password Using MySQL and PHP'>WordPress: Easily Reset Your Account Password Using MySQL and PHP</a></li>
<li><a href='http://iwebdevel.com/2009/06/16/php-get-all-files-and-folders-from-a-directory-folder/' rel='bookmark' title='Permanent Link: PHP: Get all files and folders from a directory (folder)'>PHP: Get all files and folders from a directory (folder)</a></li>
<li><a href='http://iwebdevel.com/2009/09/04/wordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script/' rel='bookmark' title='Permanent Link: WordPress: Best SEO iTranslator for WordPress, get free traffic from fully automated plugin script'>WordPress: Best SEO iTranslator for WordPress, get free traffic from fully automated plugin script</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://iwebdevel.com/2009/09/01/php-how-to-get-creation-time-of-file-with-php-on-linux-machines-filemtime-fileatime-filectime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP:ob_start() Display page at once, forget about cookie,headers sent too early errors</title>
		<link>http://iwebdevel.com/2009/08/21/phpob_start-display-page-at-once-forget-about-cookieheaders-sent-too-early-errors/</link>
		<comments>http://iwebdevel.com/2009/08/21/phpob_start-display-page-at-once-forget-about-cookieheaders-sent-too-early-errors/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 20:04:55 +0000</pubDate>
		<dc:creator>Dragos</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://iwebdevel.com/?p=201</guid>
		<description><![CDATA[If you want to display your web pages at once, not subsequently, and reduce the &#8220;headers already sent, cannot send cookie information&#8221; errors, add ob_start() at the start of your script. This function will turn output buffering on. While output buffering is active no output is sent from the script (other than headers), instead the [...]


Related posts:<ol><li><a href='http://iwebdevel.com/2009/10/03/php-how-to-download-a-webpage-aka-web-scrapping-with-php-fsockopen-file_get_contents-curl-function-download-web-page/' rel='bookmark' title='Permanent Link: PHP: How to download a webpage (aka web scrapping) with PHP'>PHP: How to download a webpage (aka web scrapping) with PHP</a></li>
<li><a href='http://iwebdevel.com/2009/09/04/wordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script/' rel='bookmark' title='Permanent Link: WordPress: Best SEO iTranslator for WordPress, get free traffic from fully automated plugin script'>WordPress: Best SEO iTranslator for WordPress, get free traffic from fully automated plugin script</a></li>
<li><a href='http://iwebdevel.com/2009/07/20/codinghow-to-fetch-user-profile-data-with-ssi-php-from-a-smf-forum-database/' rel='bookmark' title='Permanent Link: Coding:How to fetch user profile data with SSI.php from a SMF forum database'>Coding:How to fetch user profile data with SSI.php from a SMF forum database</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fiwebdevel.com%2F2009%2F08%2F21%2Fphpob_start-display-page-at-once-forget-about-cookieheaders-sent-too-early-errors%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fiwebdevel.com%2F2009%2F08%2F21%2Fphpob_start-display-page-at-once-forget-about-cookieheaders-sent-too-early-errors%2F&amp;style=normal&amp;service=is.gd" height="61" width="50" /><br />
			</a>
		</div>
<p>If you want to display your web pages at once, not subsequently, and reduce the &#8220;headers already sent, cannot send cookie information&#8221; errors, add <strong>ob_start()</strong> at the start of your script.</p>
<blockquote><p>This function will turn output buffering on. While output buffering is    active no output is sent from the script (other than headers), instead the    output is stored in an internal buffer. (php.net)</p></blockquote>
<p>You can also manipulate the contents of the output by using the function <strong>ob_get_contents()</strong></p>


<div class="shr-bookmarks shr-bookmarks-expand">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://iwebdevel.com/2009/08/21/phpob_start-display-page-at-once-forget-about-cookieheaders-sent-too-early-errors/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://iwebdevel.com/2009/08/21/phpob_start-display-page-at-once-forget-about-cookieheaders-sent-too-early-errors/&amp;title=PHP%3Aob_start%28%29+Display+page+at+once%2C+forget+about+cookie%2Cheaders+sent+too+early+errors" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://iwebdevel.com/2009/08/21/phpob_start-display-page-at-once-forget-about-cookieheaders-sent-too-early-errors/&amp;title=PHP%3Aob_start%28%29+Display+page+at+once%2C+forget+about+cookie%2Cheaders+sent+too+early+errors" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://iwebdevel.com/2009/08/21/phpob_start-display-page-at-once-forget-about-cookieheaders-sent-too-early-errors/&amp;title=PHP%3Aob_start%28%29+Display+page+at+once%2C+forget+about+cookie%2Cheaders+sent+too+early+errors&amp;desc=If%20you%20want%20to%20display%20your%20web%20pages%20at%20once%2C%20not%20subsequently%2C%20and%20reduce%20the%20%22headers%20already%20sent%2C%20cannot%20send%20cookie%20information%22%20errors%2C%20add%20ob_start%28%29%20at%20the%20start%20of%20your%20script.%0D%0AThis%20function%20will%20turn%20output%20buffering%20on.%20While%20output%20buffering%20is%20%20%20%20active%20no%20output%20is%20sent%20from%20the%20scri" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=PHP%3Aob_start%28%29+Display+page+at+once%2C+forget+about+cookie%2Cheaders+sent+too+early+errors&amp;body=Link: http://iwebdevel.com/2009/08/21/phpob_start-display-page-at-once-forget-about-cookieheaders-sent-too-early-errors/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A If%20you%20want%20to%20display%20your%20web%20pages%20at%20once%2C%20not%20subsequently%2C%20and%20reduce%20the%20%22headers%20already%20sent%2C%20cannot%20send%20cookie%20information%22%20errors%2C%20add%20ob_start%28%29%20at%20the%20start%20of%20your%20script.%0D%0AThis%20function%20will%20turn%20output%20buffering%20on.%20While%20output%20buffering%20is%20%20%20%20active%20no%20output%20is%20sent%20from%20the%20scri" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://iwebdevel.com/2009/08/21/phpob_start-display-page-at-once-forget-about-cookieheaders-sent-too-early-errors/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://iwebdevel.com/2009/08/21/phpob_start-display-page-at-once-forget-about-cookieheaders-sent-too-early-errors/&amp;bm_description=PHP%3Aob_start%28%29+Display+page+at+once%2C+forget+about+cookie%2Cheaders+sent+too+early+errors&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://iwebdevel.com/2009/08/21/phpob_start-display-page-at-once-forget-about-cookieheaders-sent-too-early-errors/&amp;title=PHP%3Aob_start%28%29+Display+page+at+once%2C+forget+about+cookie%2Cheaders+sent+too+early+errors" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://iwebdevel.com/2009/08/21/phpob_start-display-page-at-once-forget-about-cookieheaders-sent-too-early-errors/&amp;title=PHP%3Aob_start%28%29+Display+page+at+once%2C+forget+about+cookie%2Cheaders+sent+too+early+errors" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://iwebdevel.com/2009/08/21/phpob_start-display-page-at-once-forget-about-cookieheaders-sent-too-early-errors/&amp;title=PHP%3Aob_start%28%29+Display+page+at+once%2C+forget+about+cookie%2Cheaders+sent+too+early+errors" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://iwebdevel.com/2009/08/21/phpob_start-display-page-at-once-forget-about-cookieheaders-sent-too-early-errors/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=PHP%3Aob_start%28%29+Display+page+at+once%2C+forget+about+cookie%2Cheaders+sent+too+early+%5B..%5D+-+http://iwebdevel.com/2009/08/21/phpob_start-display-page-at-once-forget-about-cookieheaders-sent-too-early-errors/&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://iwebdevel.com/2009/10/03/php-how-to-download-a-webpage-aka-web-scrapping-with-php-fsockopen-file_get_contents-curl-function-download-web-page/' rel='bookmark' title='Permanent Link: PHP: How to download a webpage (aka web scrapping) with PHP'>PHP: How to download a webpage (aka web scrapping) with PHP</a></li>
<li><a href='http://iwebdevel.com/2009/09/04/wordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script/' rel='bookmark' title='Permanent Link: WordPress: Best SEO iTranslator for WordPress, get free traffic from fully automated plugin script'>WordPress: Best SEO iTranslator for WordPress, get free traffic from fully automated plugin script</a></li>
<li><a href='http://iwebdevel.com/2009/07/20/codinghow-to-fetch-user-profile-data-with-ssi-php-from-a-smf-forum-database/' rel='bookmark' title='Permanent Link: Coding:How to fetch user profile data with SSI.php from a SMF forum database'>Coding:How to fetch user profile data with SSI.php from a SMF forum database</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://iwebdevel.com/2009/08/21/phpob_start-display-page-at-once-forget-about-cookieheaders-sent-too-early-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: Script to extract one&#8217;s contacts from email (Gmail, Yahoo,Hotmail,AOL&#8230;) and send invites &#8211; OpenInviter to go!</title>
		<link>http://iwebdevel.com/2009/08/18/php-script-to-extract-ones-contacts-from-email-gmail-yahoohotmailaol-and-send-invites-openinviter-to-go/</link>
		<comments>http://iwebdevel.com/2009/08/18/php-script-to-extract-ones-contacts-from-email-gmail-yahoohotmailaol-and-send-invites-openinviter-to-go/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 07:17:36 +0000</pubDate>
		<dc:creator>Dragos</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Internet Life]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Buzzz]]></category>
		<category><![CDATA[email extract]]></category>
		<category><![CDATA[openinviter]]></category>
		<category><![CDATA[send invite]]></category>

		<guid isPermaLink="false">http://iwebdevel.com/?p=188</guid>
		<description><![CDATA[You&#8217;ll find many scripts to extract email contacts, but many of these are either commercial or just given as apis. For the last case, it&#8217;s good to extract contacts from an email using an external server, because that&#8217;ll help reduce the server load, but what if the website providing that service goes down? Not good. [...]


Related posts:<ol><li><a href='http://iwebdevel.com/2009/09/05/web-news-social-website-toolbars-that-help-your-visitors-better-interact-with-your-online-product/' rel='bookmark' title='Permanent Link: Web news: Social website toolbars that help your visitors better interact with your online product'>Web news: Social website toolbars that help your visitors better interact with your online product</a></li>
<li><a href='http://iwebdevel.com/2009/09/04/wordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script/' rel='bookmark' title='Permanent Link: WordPress: Best SEO iTranslator for WordPress, get free traffic from fully automated plugin script'>WordPress: Best SEO iTranslator for WordPress, get free traffic from fully automated plugin script</a></li>
<li><a href='http://iwebdevel.com/2009/06/13/javascript-how-to-validate-email-address-with-javascript/' rel='bookmark' title='Permanent Link: Javascript: How to validate email address with JavaScript?'>Javascript: How to validate email address with JavaScript?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fiwebdevel.com%2F2009%2F08%2F18%2Fphp-script-to-extract-ones-contacts-from-email-gmail-yahoohotmailaol-and-send-invites-openinviter-to-go%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fiwebdevel.com%2F2009%2F08%2F18%2Fphp-script-to-extract-ones-contacts-from-email-gmail-yahoohotmailaol-and-send-invites-openinviter-to-go%2F&amp;style=normal&amp;service=is.gd" height="61" width="50" /><br />
			</a>
		</div>
<div id="attachment_189" class="wp-caption alignleft" style="width: 160px"><a href="http://iwebdevel.com/wp-content/uploads/2009/08/logo.png"><img class="size-thumbnail wp-image-189" title="OpenInviter -email extractor php script-logo" src="http://iwebdevel.com/wp-content/uploads/2009/08/logo-150x150.png" alt="OpenInviter -email extractor php script-logo" width="150" height="150" /></a><p class="wp-caption-text">OpenInviter -email extractor php script-logo</p></div>
<p>You&#8217;ll find many scripts to extract email contacts, but many of these are either commercial or just given as apis. For the last case, it&#8217;s good to extract contacts from an email using an external server, because that&#8217;ll help reduce the server load, but what if the website providing that service goes down? Not good.</p>
<p>So here&#8217;s a better solution: OpenInviter<sup>TM.</sup></p>
<p>OpenInviter is a precious tool for those who want to get viral traffic to their websites. This technique has been widely used by most social networks, such as FaceBook, Twitter, Hi5&#8230; The best part about OpenInviter is that it supports a lot of email providers and social networks. Yup! You&#8217;ve heard it well, you can even send invites to friends from social networks as private/direct messages; it works on your own server, meaning that you&#8217;ll have a functional invite system even when all other websites are down.</p>
<p>Go get it quickly while it&#8217;s warm and free: <a title="OpenInviter offsite" href="http://openinviter.com/" target="_blank">http://openinviter.com/</a></p>


<div class="shr-bookmarks shr-bookmarks-expand">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://iwebdevel.com/2009/08/18/php-script-to-extract-ones-contacts-from-email-gmail-yahoohotmailaol-and-send-invites-openinviter-to-go/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://iwebdevel.com/2009/08/18/php-script-to-extract-ones-contacts-from-email-gmail-yahoohotmailaol-and-send-invites-openinviter-to-go/&amp;title=PHP%3A+Script+to+extract+one%27s+contacts+from+email+%28Gmail%2C+Yahoo%2CHotmail%2CAOL...%29+and+send+invites+-+OpenInviter+to+go%21" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://iwebdevel.com/2009/08/18/php-script-to-extract-ones-contacts-from-email-gmail-yahoohotmailaol-and-send-invites-openinviter-to-go/&amp;title=PHP%3A+Script+to+extract+one%27s+contacts+from+email+%28Gmail%2C+Yahoo%2CHotmail%2CAOL...%29+and+send+invites+-+OpenInviter+to+go%21" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://iwebdevel.com/2009/08/18/php-script-to-extract-ones-contacts-from-email-gmail-yahoohotmailaol-and-send-invites-openinviter-to-go/&amp;title=PHP%3A+Script+to+extract+one%27s+contacts+from+email+%28Gmail%2C+Yahoo%2CHotmail%2CAOL...%29+and+send+invites+-+OpenInviter+to+go%21&amp;desc=%0D%0A%0D%0AYou%27ll%20find%20many%20scripts%20to%20extract%20email%20contacts%2C%20but%20many%20of%20these%20are%20either%20commercial%20or%20just%20given%20as%20apis.%20For%20the%20last%20case%2C%20it%27s%20good%20to%20extract%20contacts%20from%20an%20email%20using%20an%20external%20server%2C%20because%20that%27ll%20help%20reduce%20the%20server%20load%2C%20but%20what%20if%20the%20website%20providing%20that%20service%20" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=PHP%3A+Script+to+extract+one%27s+contacts+from+email+%28Gmail%2C+Yahoo%2CHotmail%2CAOL...%29+and+send+invites+-+OpenInviter+to+go%21&amp;body=Link: http://iwebdevel.com/2009/08/18/php-script-to-extract-ones-contacts-from-email-gmail-yahoohotmailaol-and-send-invites-openinviter-to-go/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A %0D%0A%0D%0AYou%27ll%20find%20many%20scripts%20to%20extract%20email%20contacts%2C%20but%20many%20of%20these%20are%20either%20commercial%20or%20just%20given%20as%20apis.%20For%20the%20last%20case%2C%20it%27s%20good%20to%20extract%20contacts%20from%20an%20email%20using%20an%20external%20server%2C%20because%20that%27ll%20help%20reduce%20the%20server%20load%2C%20but%20what%20if%20the%20website%20providing%20that%20service%20" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://iwebdevel.com/2009/08/18/php-script-to-extract-ones-contacts-from-email-gmail-yahoohotmailaol-and-send-invites-openinviter-to-go/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://iwebdevel.com/2009/08/18/php-script-to-extract-ones-contacts-from-email-gmail-yahoohotmailaol-and-send-invites-openinviter-to-go/&amp;bm_description=PHP%3A+Script+to+extract+one%27s+contacts+from+email+%28Gmail%2C+Yahoo%2CHotmail%2CAOL...%29+and+send+invites+-+OpenInviter+to+go%21&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://iwebdevel.com/2009/08/18/php-script-to-extract-ones-contacts-from-email-gmail-yahoohotmailaol-and-send-invites-openinviter-to-go/&amp;title=PHP%3A+Script+to+extract+one%27s+contacts+from+email+%28Gmail%2C+Yahoo%2CHotmail%2CAOL...%29+and+send+invites+-+OpenInviter+to+go%21" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://iwebdevel.com/2009/08/18/php-script-to-extract-ones-contacts-from-email-gmail-yahoohotmailaol-and-send-invites-openinviter-to-go/&amp;title=PHP%3A+Script+to+extract+one%27s+contacts+from+email+%28Gmail%2C+Yahoo%2CHotmail%2CAOL...%29+and+send+invites+-+OpenInviter+to+go%21" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://iwebdevel.com/2009/08/18/php-script-to-extract-ones-contacts-from-email-gmail-yahoohotmailaol-and-send-invites-openinviter-to-go/&amp;title=PHP%3A+Script+to+extract+one%27s+contacts+from+email+%28Gmail%2C+Yahoo%2CHotmail%2CAOL...%29+and+send+invites+-+OpenInviter+to+go%21" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://iwebdevel.com/2009/08/18/php-script-to-extract-ones-contacts-from-email-gmail-yahoohotmailaol-and-send-invites-openinviter-to-go/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=PHP%3A+Script+to+extract+one%27s+contacts+from+email+%28Gmail%2C+Yahoo%2CHotmail%2CAOL...%29+a%5B..%5D+-+http://iwebdevel.com/2009/08/18/php-script-to-extract-ones-contacts-from-email-gmail-yahoohotmailaol-and-send-invites-openinviter-to-go/&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://iwebdevel.com/2009/09/05/web-news-social-website-toolbars-that-help-your-visitors-better-interact-with-your-online-product/' rel='bookmark' title='Permanent Link: Web news: Social website toolbars that help your visitors better interact with your online product'>Web news: Social website toolbars that help your visitors better interact with your online product</a></li>
<li><a href='http://iwebdevel.com/2009/09/04/wordpress-best-seo-itranslator-for-wordpress-get-free-traffic-from-fully-automated-plugin-script/' rel='bookmark' title='Permanent Link: WordPress: Best SEO iTranslator for WordPress, get free traffic from fully automated plugin script'>WordPress: Best SEO iTranslator for WordPress, get free traffic from fully automated plugin script</a></li>
<li><a href='http://iwebdevel.com/2009/06/13/javascript-how-to-validate-email-address-with-javascript/' rel='bookmark' title='Permanent Link: Javascript: How to validate email address with JavaScript?'>Javascript: How to validate email address with JavaScript?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://iwebdevel.com/2009/08/18/php-script-to-extract-ones-contacts-from-email-gmail-yahoohotmailaol-and-send-invites-openinviter-to-go/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Coding:How to fetch user profile data with SSI.php from a SMF forum database</title>
		<link>http://iwebdevel.com/2009/07/20/codinghow-to-fetch-user-profile-data-with-ssi-php-from-a-smf-forum-database/</link>
		<comments>http://iwebdevel.com/2009/07/20/codinghow-to-fetch-user-profile-data-with-ssi-php-from-a-smf-forum-database/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 06:40:59 +0000</pubDate>
		<dc:creator>Dragos</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[forum]]></category>
		<category><![CDATA[smf]]></category>
		<category><![CDATA[ssi]]></category>
		<category><![CDATA[ssi.php]]></category>

		<guid isPermaLink="false">http://iwebdevel.com/?p=127</guid>
		<description><![CDATA[Even though SMF offers a way to integrate their forum into any website, they do not provide enough information on how to do some basic tasks, e.g. fetching a member&#8217;s profile details from the database. Fortunately, Netbeans has a very helpful feature, the code Navigator which shows an instant preview of all functions available in [...]


Related posts:<ol><li><a href='http://iwebdevel.com/2009/06/23/php-error-call-to-a-member-function-fetch_assoc-on-a-non-object-in/' rel='bookmark' title='Permanent Link: PHP Error: Call to a member function fetch_assoc() on a non-object in'>PHP Error: Call to a member function fetch_assoc() on a non-object in</a></li>
<li><a href='http://iwebdevel.com/2010/02/03/sqlite-mysql-php-ternary-operator-if-statement-in-mysql-and-sqlite/' rel='bookmark' title='Permanent Link: SQLite, MySQL, PHP: Ternary operator (IF() statement) in MySQL and SQLite'>SQLite, MySQL, PHP: Ternary operator (IF() statement) in MySQL and SQLite</a></li>
<li><a href='http://iwebdevel.com/2009/06/08/wordpress-easily-reset-your-account-password-using-mysql-and-php/' rel='bookmark' title='Permanent Link: WordPress: Easily Reset Your Account Password Using MySQL and PHP'>WordPress: Easily Reset Your Account Password Using MySQL and PHP</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fiwebdevel.com%2F2009%2F07%2F20%2Fcodinghow-to-fetch-user-profile-data-with-ssi-php-from-a-smf-forum-database%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fiwebdevel.com%2F2009%2F07%2F20%2Fcodinghow-to-fetch-user-profile-data-with-ssi-php-from-a-smf-forum-database%2F&amp;style=normal&amp;service=is.gd" height="61" width="50" /><br />
			</a>
		</div>
<p>Even though SMF offers a way to integrate their forum into any website, they do not provide enough information on how to do some basic tasks, e.g. fetching a member&#8217;s profile details from the database. Fortunately, Netbeans has a very helpful feature, the code Navigator which shows an instant preview of all functions available in an open file. So finding the function which does our job was pretty easy (though I couldn&#8217;t find it on SMF&#8217;s website).</p>
<p>Anyway, to fetch data from the SMF database, using SMF&#8217;s functions, we need to include SSI.php into our website.</p>
<pre name="code" class="php">include_once('path/to/your/forum/SSI.php'); // replace path/to/your/forum with your path to the SMF forum
$userData=ssi_fetchMember(1,''); //ssi_fetchMember() takes two parameters: first: the member id as an integer or more than one id passed in an array; second parameter: output method as string: 'echo' or '';
print_r($userData); //display the array containing the member's profile data</pre>


<div class="shr-bookmarks shr-bookmarks-expand">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://iwebdevel.com/2009/07/20/codinghow-to-fetch-user-profile-data-with-ssi-php-from-a-smf-forum-database/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://iwebdevel.com/2009/07/20/codinghow-to-fetch-user-profile-data-with-ssi-php-from-a-smf-forum-database/&amp;title=Coding%3AHow+to+fetch+user+profile+data+with+SSI.php+from+a+SMF+forum+database" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://iwebdevel.com/2009/07/20/codinghow-to-fetch-user-profile-data-with-ssi-php-from-a-smf-forum-database/&amp;title=Coding%3AHow+to+fetch+user+profile+data+with+SSI.php+from+a+SMF+forum+database" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://iwebdevel.com/2009/07/20/codinghow-to-fetch-user-profile-data-with-ssi-php-from-a-smf-forum-database/&amp;title=Coding%3AHow+to+fetch+user+profile+data+with+SSI.php+from+a+SMF+forum+database&amp;desc=Even%20though%20SMF%20offers%20a%20way%20to%20integrate%20their%20forum%20into%20any%20website%2C%20they%20do%20not%20provide%20enough%20information%20on%20how%20to%20do%20some%20basic%20tasks%2C%20e.g.%20fetching%20a%20member%27s%20profile%20details%20from%20the%20database.%20Fortunately%2C%20Netbeans%20has%20a%20very%20helpful%20feature%2C%20the%20code%20Navigator%20which%20shows%20an%20instant%20previe" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=Coding%3AHow+to+fetch+user+profile+data+with+SSI.php+from+a+SMF+forum+database&amp;body=Link: http://iwebdevel.com/2009/07/20/codinghow-to-fetch-user-profile-data-with-ssi-php-from-a-smf-forum-database/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Even%20though%20SMF%20offers%20a%20way%20to%20integrate%20their%20forum%20into%20any%20website%2C%20they%20do%20not%20provide%20enough%20information%20on%20how%20to%20do%20some%20basic%20tasks%2C%20e.g.%20fetching%20a%20member%27s%20profile%20details%20from%20the%20database.%20Fortunately%2C%20Netbeans%20has%20a%20very%20helpful%20feature%2C%20the%20code%20Navigator%20which%20shows%20an%20instant%20previe" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://iwebdevel.com/2009/07/20/codinghow-to-fetch-user-profile-data-with-ssi-php-from-a-smf-forum-database/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://iwebdevel.com/2009/07/20/codinghow-to-fetch-user-profile-data-with-ssi-php-from-a-smf-forum-database/&amp;bm_description=Coding%3AHow+to+fetch+user+profile+data+with+SSI.php+from+a+SMF+forum+database&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://iwebdevel.com/2009/07/20/codinghow-to-fetch-user-profile-data-with-ssi-php-from-a-smf-forum-database/&amp;title=Coding%3AHow+to+fetch+user+profile+data+with+SSI.php+from+a+SMF+forum+database" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://iwebdevel.com/2009/07/20/codinghow-to-fetch-user-profile-data-with-ssi-php-from-a-smf-forum-database/&amp;title=Coding%3AHow+to+fetch+user+profile+data+with+SSI.php+from+a+SMF+forum+database" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://iwebdevel.com/2009/07/20/codinghow-to-fetch-user-profile-data-with-ssi-php-from-a-smf-forum-database/&amp;title=Coding%3AHow+to+fetch+user+profile+data+with+SSI.php+from+a+SMF+forum+database" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://iwebdevel.com/2009/07/20/codinghow-to-fetch-user-profile-data-with-ssi-php-from-a-smf-forum-database/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Coding%3AHow+to+fetch+user+profile+data+with+SSI.php+from+a+SMF+forum+database+-+http://iwebdevel.com/2009/07/20/codinghow-to-fetch-user-profile-data-with-ssi-php-from-a-smf-forum-database/&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://iwebdevel.com/2009/06/23/php-error-call-to-a-member-function-fetch_assoc-on-a-non-object-in/' rel='bookmark' title='Permanent Link: PHP Error: Call to a member function fetch_assoc() on a non-object in'>PHP Error: Call to a member function fetch_assoc() on a non-object in</a></li>
<li><a href='http://iwebdevel.com/2010/02/03/sqlite-mysql-php-ternary-operator-if-statement-in-mysql-and-sqlite/' rel='bookmark' title='Permanent Link: SQLite, MySQL, PHP: Ternary operator (IF() statement) in MySQL and SQLite'>SQLite, MySQL, PHP: Ternary operator (IF() statement) in MySQL and SQLite</a></li>
<li><a href='http://iwebdevel.com/2009/06/08/wordpress-easily-reset-your-account-password-using-mysql-and-php/' rel='bookmark' title='Permanent Link: WordPress: Easily Reset Your Account Password Using MySQL and PHP'>WordPress: Easily Reset Your Account Password Using MySQL and PHP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://iwebdevel.com/2009/07/20/codinghow-to-fetch-user-profile-data-with-ssi-php-from-a-smf-forum-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Error: Call to a member function fetch_assoc() on a non-object in</title>
		<link>http://iwebdevel.com/2009/06/23/php-error-call-to-a-member-function-fetch_assoc-on-a-non-object-in/</link>
		<comments>http://iwebdevel.com/2009/06/23/php-error-call-to-a-member-function-fetch_assoc-on-a-non-object-in/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 07:41:08 +0000</pubDate>
		<dc:creator>Dragos</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[mysqli]]></category>
		<category><![CDATA[php error]]></category>

		<guid isPermaLink="false">http://iwebdevel.com/?p=102</guid>
		<description><![CDATA[If you get this error: Call to a member function fetch_assoc() on a non-object in &#8230; , it means that you have an error in your mysql syntax. Supposing that $mysqli is your database connection object, put echo $mysqli-&#62;error; just before the line you&#8217;re getting the error on. $mysqli=new mysqli(HOST,USER,PASS,DB); $mQuery=$mysqli->query('select `data` from `this_table` where [...]


Related posts:<ol><li><a href='http://iwebdevel.com/2009/07/20/codinghow-to-fetch-user-profile-data-with-ssi-php-from-a-smf-forum-database/' rel='bookmark' title='Permanent Link: Coding:How to fetch user profile data with SSI.php from a SMF forum database'>Coding:How to fetch user profile data with SSI.php from a SMF forum database</a></li>
<li><a href='http://iwebdevel.com/2009/06/08/wordpress-easily-reset-your-account-password-using-mysql-and-php/' rel='bookmark' title='Permanent Link: WordPress: Easily Reset Your Account Password Using MySQL and PHP'>WordPress: Easily Reset Your Account Password Using MySQL and PHP</a></li>
<li><a href='http://iwebdevel.com/2010/02/03/sqlite-mysql-php-ternary-operator-if-statement-in-mysql-and-sqlite/' rel='bookmark' title='Permanent Link: SQLite, MySQL, PHP: Ternary operator (IF() statement) in MySQL and SQLite'>SQLite, MySQL, PHP: Ternary operator (IF() statement) in MySQL and SQLite</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fiwebdevel.com%2F2009%2F06%2F23%2Fphp-error-call-to-a-member-function-fetch_assoc-on-a-non-object-in%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fiwebdevel.com%2F2009%2F06%2F23%2Fphp-error-call-to-a-member-function-fetch_assoc-on-a-non-object-in%2F&amp;style=normal&amp;service=is.gd" height="61" width="50" /><br />
			</a>
		</div>
<p>If you get this error: Call to a member function fetch_assoc() on a non-object in &#8230; , it means that you have an error in your mysql syntax. Supposing that $mysqli is your database connection object, put echo $mysqli-&gt;error; just before the line you&#8217;re getting the error on.</p>
<pre name="code" class="php">
$mysqli=new mysqli(HOST,USER,PASS,DB);
$mQuery=$mysqli->query('select `data` from `this_table` where `id`=1');
echo $mysqli->error; //echoes that column `data` does not exist in table `this_table`
$row=$mQuery->fetch_assoc(); //gives error as the column `data` is in table `that_table`, not in table `this_table`
$mysqli->close();
</pre>


<div class="shr-bookmarks shr-bookmarks-expand">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://iwebdevel.com/2009/06/23/php-error-call-to-a-member-function-fetch_assoc-on-a-non-object-in/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://iwebdevel.com/2009/06/23/php-error-call-to-a-member-function-fetch_assoc-on-a-non-object-in/&amp;title=PHP+Error%3A+Call+to+a+member+function+fetch_assoc%28%29+on+a+non-object+in" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://iwebdevel.com/2009/06/23/php-error-call-to-a-member-function-fetch_assoc-on-a-non-object-in/&amp;title=PHP+Error%3A+Call+to+a+member+function+fetch_assoc%28%29+on+a+non-object+in" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://iwebdevel.com/2009/06/23/php-error-call-to-a-member-function-fetch_assoc-on-a-non-object-in/&amp;title=PHP+Error%3A+Call+to+a+member+function+fetch_assoc%28%29+on+a+non-object+in&amp;desc=If%20you%20get%20this%20error%3A%20Call%20to%20a%20member%20function%20fetch_assoc%28%29%20on%20a%20non-object%20in%20...%20%2C%20it%20means%20that%20you%20have%20an%20error%20in%20your%20mysql%20syntax.%20Supposing%20that%20%24mysqli%20is%20your%20database%20connection%20object%2C%20put%20echo%20%24mysqli-%26gt%3Berror%3B%20just%20before%20the%20line%20you%27re%20getting%20the%20error%20on.%0D%0A%0D%0A%0D%0A%24mysqli%3Dnew%20mysq" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=PHP+Error%3A+Call+to+a+member+function+fetch_assoc%28%29+on+a+non-object+in&amp;body=Link: http://iwebdevel.com/2009/06/23/php-error-call-to-a-member-function-fetch_assoc-on-a-non-object-in/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A If%20you%20get%20this%20error%3A%20Call%20to%20a%20member%20function%20fetch_assoc%28%29%20on%20a%20non-object%20in%20...%20%2C%20it%20means%20that%20you%20have%20an%20error%20in%20your%20mysql%20syntax.%20Supposing%20that%20%24mysqli%20is%20your%20database%20connection%20object%2C%20put%20echo%20%24mysqli-%26gt%3Berror%3B%20just%20before%20the%20line%20you%27re%20getting%20the%20error%20on.%0D%0A%0D%0A%0D%0A%24mysqli%3Dnew%20mysq" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://iwebdevel.com/2009/06/23/php-error-call-to-a-member-function-fetch_assoc-on-a-non-object-in/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://iwebdevel.com/2009/06/23/php-error-call-to-a-member-function-fetch_assoc-on-a-non-object-in/&amp;bm_description=PHP+Error%3A+Call+to+a+member+function+fetch_assoc%28%29+on+a+non-object+in&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://iwebdevel.com/2009/06/23/php-error-call-to-a-member-function-fetch_assoc-on-a-non-object-in/&amp;title=PHP+Error%3A+Call+to+a+member+function+fetch_assoc%28%29+on+a+non-object+in" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://iwebdevel.com/2009/06/23/php-error-call-to-a-member-function-fetch_assoc-on-a-non-object-in/&amp;title=PHP+Error%3A+Call+to+a+member+function+fetch_assoc%28%29+on+a+non-object+in" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://iwebdevel.com/2009/06/23/php-error-call-to-a-member-function-fetch_assoc-on-a-non-object-in/&amp;title=PHP+Error%3A+Call+to+a+member+function+fetch_assoc%28%29+on+a+non-object+in" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://iwebdevel.com/2009/06/23/php-error-call-to-a-member-function-fetch_assoc-on-a-non-object-in/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=PHP+Error%3A+Call+to+a+member+function+fetch_assoc%28%29+on+a+non-object+in+-+http://iwebdevel.com/2009/06/23/php-error-call-to-a-member-function-fetch_assoc-on-a-non-object-in/&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://iwebdevel.com/2009/07/20/codinghow-to-fetch-user-profile-data-with-ssi-php-from-a-smf-forum-database/' rel='bookmark' title='Permanent Link: Coding:How to fetch user profile data with SSI.php from a SMF forum database'>Coding:How to fetch user profile data with SSI.php from a SMF forum database</a></li>
<li><a href='http://iwebdevel.com/2009/06/08/wordpress-easily-reset-your-account-password-using-mysql-and-php/' rel='bookmark' title='Permanent Link: WordPress: Easily Reset Your Account Password Using MySQL and PHP'>WordPress: Easily Reset Your Account Password Using MySQL and PHP</a></li>
<li><a href='http://iwebdevel.com/2010/02/03/sqlite-mysql-php-ternary-operator-if-statement-in-mysql-and-sqlite/' rel='bookmark' title='Permanent Link: SQLite, MySQL, PHP: Ternary operator (IF() statement) in MySQL and SQLite'>SQLite, MySQL, PHP: Ternary operator (IF() statement) in MySQL and SQLite</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://iwebdevel.com/2009/06/23/php-error-call-to-a-member-function-fetch_assoc-on-a-non-object-in/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PHP: Get all files and folders from a directory (folder)</title>
		<link>http://iwebdevel.com/2009/06/16/php-get-all-files-and-folders-from-a-directory-folder/</link>
		<comments>http://iwebdevel.com/2009/06/16/php-get-all-files-and-folders-from-a-directory-folder/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 14:29:58 +0000</pubDate>
		<dc:creator>Dragos</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[get files under directory]]></category>
		<category><![CDATA[scandir]]></category>

		<guid isPermaLink="false">http://iwebdevel.com/?p=91</guid>
		<description><![CDATA[To get all files and folders from a directory (folder) I found scandir to be the perfect solution. scandir scans a directory and returns an array containing all files and directories under the parent directory we&#8217;re looking in. The code below will try to remove a directory, if the element is a directory or delete [...]


Related posts:<ol><li><a href='http://iwebdevel.com/2009/07/17/apache-modrewrite-how-to-easily-deny-access-to-a-folder-with-htaccess/' rel='bookmark' title='Permanent Link: Apache &#038; ModRewrite: How to easily deny access to a folder with htaccess'>Apache &#038; ModRewrite: How to easily deny access to a folder with htaccess</a></li>
<li><a href='http://iwebdevel.com/2009/06/20/javascript-how-to-get-the-index-position-within-a-group-of-an-object-with-jquery/' rel='bookmark' title='Permanent Link: JavaScript: How to get the index (position within a group) of an object with jQuery?'>JavaScript: How to get the index (position within a group) of an object with jQuery?</a></li>
<li><a href='http://iwebdevel.com/2009/06/08/javascript-where-do-i-find-all-properties-for-all-html-elements/' rel='bookmark' title='Permanent Link: JavaScript: Where do I Find All Properties for All HTML Elements ?'>JavaScript: Where do I Find All Properties for All HTML Elements ?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fiwebdevel.com%2F2009%2F06%2F16%2Fphp-get-all-files-and-folders-from-a-directory-folder%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fiwebdevel.com%2F2009%2F06%2F16%2Fphp-get-all-files-and-folders-from-a-directory-folder%2F&amp;style=normal&amp;service=is.gd" height="61" width="50" /><br />
			</a>
		</div>
<p>To get all files and folders from a directory (folder) I found <strong>scandir</strong> to be the perfect solution.</p>
<p><strong>scandir</strong> scans a directory and returns an array containing all files and directories under the parent directory we&#8217;re looking in.</p>
<p>The code below will try to remove a directory, if the element is a directory or delete a file, if respectively the element is a file.</p>
<pre name="code" class="php">$lookin='./home/folder';
$elements=scandir($lookin);
foreach($elements as $singleEl) {
     if(is_dir($lookin.'/'.$singleEl)) rmdir($lookin.'/'.$singleEl);
     else
     unlink($lookin.'/'.$singleEl);
}</pre>


<div class="shr-bookmarks shr-bookmarks-expand">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://iwebdevel.com/2009/06/16/php-get-all-files-and-folders-from-a-directory-folder/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://iwebdevel.com/2009/06/16/php-get-all-files-and-folders-from-a-directory-folder/&amp;title=PHP%3A+Get+all+files+and+folders+from+a+directory+%28folder%29" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://iwebdevel.com/2009/06/16/php-get-all-files-and-folders-from-a-directory-folder/&amp;title=PHP%3A+Get+all+files+and+folders+from+a+directory+%28folder%29" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://iwebdevel.com/2009/06/16/php-get-all-files-and-folders-from-a-directory-folder/&amp;title=PHP%3A+Get+all+files+and+folders+from+a+directory+%28folder%29&amp;desc=To%20get%20all%20files%20and%20folders%20from%20a%20directory%20%28folder%29%20I%20found%20scandir%20to%20be%20the%20perfect%20solution.%0D%0A%0D%0Ascandir%20scans%20a%20directory%20and%20returns%20an%20array%20containing%20all%20files%20and%20directories%20under%20the%20parent%20directory%20we%27re%20looking%20in.%0D%0A%0D%0AThe%20code%20below%20will%20try%20to%20remove%20a%20directory%2C%20if%20the%20element%20is%20a" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-gmail">
			<a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=PHP%3A+Get+all+files+and+folders+from+a+directory+%28folder%29&amp;body=Link: http://iwebdevel.com/2009/06/16/php-get-all-files-and-folders-from-a-directory-folder/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A To%20get%20all%20files%20and%20folders%20from%20a%20directory%20%28folder%29%20I%20found%20scandir%20to%20be%20the%20perfect%20solution.%0D%0A%0D%0Ascandir%20scans%20a%20directory%20and%20returns%20an%20array%20containing%20all%20files%20and%20directories%20under%20the%20parent%20directory%20we%27re%20looking%20in.%0D%0A%0D%0AThe%20code%20below%20will%20try%20to%20remove%20a%20directory%2C%20if%20the%20element%20is%20a" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://iwebdevel.com/2009/06/16/php-get-all-files-and-folders-from-a-directory-folder/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://iwebdevel.com/2009/06/16/php-get-all-files-and-folders-from-a-directory-folder/&amp;bm_description=PHP%3A+Get+all+files+and+folders+from+a+directory+%28folder%29&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://iwebdevel.com/2009/06/16/php-get-all-files-and-folders-from-a-directory-folder/&amp;title=PHP%3A+Get+all+files+and+folders+from+a+directory+%28folder%29" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://iwebdevel.com/2009/06/16/php-get-all-files-and-folders-from-a-directory-folder/&amp;title=PHP%3A+Get+all+files+and+folders+from+a+directory+%28folder%29" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://iwebdevel.com/2009/06/16/php-get-all-files-and-folders-from-a-directory-folder/&amp;title=PHP%3A+Get+all+files+and+folders+from+a+directory+%28folder%29" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://iwebdevel.com/2009/06/16/php-get-all-files-and-folders-from-a-directory-folder/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=PHP%3A+Get+all+files+and+folders+from+a+directory+%28folder%29+-+http://iwebdevel.com/2009/06/16/php-get-all-files-and-folders-from-a-directory-folder/&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://iwebdevel.com/2009/07/17/apache-modrewrite-how-to-easily-deny-access-to-a-folder-with-htaccess/' rel='bookmark' title='Permanent Link: Apache &#038; ModRewrite: How to easily deny access to a folder with htaccess'>Apache &#038; ModRewrite: How to easily deny access to a folder with htaccess</a></li>
<li><a href='http://iwebdevel.com/2009/06/20/javascript-how-to-get-the-index-position-within-a-group-of-an-object-with-jquery/' rel='bookmark' title='Permanent Link: JavaScript: How to get the index (position within a group) of an object with jQuery?'>JavaScript: How to get the index (position within a group) of an object with jQuery?</a></li>
<li><a href='http://iwebdevel.com/2009/06/08/javascript-where-do-i-find-all-properties-for-all-html-elements/' rel='bookmark' title='Permanent Link: JavaScript: Where do I Find All Properties for All HTML Elements ?'>JavaScript: Where do I Find All Properties for All HTML Elements ?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://iwebdevel.com/2009/06/16/php-get-all-files-and-folders-from-a-directory-folder/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
