<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.8.6" -->
<rss version="0.92">
<channel>
	<title>Free php tutorials, Php scripts</title>
	<link>http://phpplanet.org</link>
	<description>Get all solution related to PHP</description>
	<lastBuildDate>Thu, 17 Nov 2011 13:31:16 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Sequentially Rename All Image Files In A Directory With PHP</title>
		<description>The following function will rename all of the image files in a directory to be sequential. The parameters are the path of the directory that the files are in and the name of a function that will be used to sort the array of files through the PHP usort() function.

[code]
function ...</description>
		<link>http://phpplanet.org/sequentially-rename-all-image-files-in-a-directory-with-php/</link>
			</item>
	<item>
		<title>Invalid field count in csv input on line 1</title>
		<description>I was trying to import a massive csv dataset into phpMyAdmin and it kept throwing error:Invalid field count in csv input on line 1

This was very annoying as it was all being done the way it always works for me!

To solve this I had to do the following:

	Import
	Browse for your csv ...</description>
		<link>http://phpplanet.org/invalid-field-count-in-csv-input-on-line-1/</link>
			</item>
	<item>
		<title>Post orderby custom field</title>
		<description>If you want to make posts orderby custom field ... use below code .

proirity = Custom Field name

global $wp_query;  function priority_select($sql){  global $wpdb;  if (strpos($sql, 'proirity') !== false){  $sql = str_replace("ORDER BY {$wpdb-&#62;postmeta}.meta_key", "ORDER BY CAST({$wpdb-&#62;postmeta}.meta_key  AS UNSIGNED)", $sql);  }  return $sql;  } ...</description>
		<link>http://phpplanet.org/post-orderby-custom-field/</link>
			</item>
	<item>
		<title>Sorry, this file type is not permitted for security reasons</title>
		<description>I can’t upload .3gp to wordpress.
Solution:
Edit wp-includes/functions.php,
search for:
1
'mp4&#124;m4v' =&#62; 'video/mp4',
add a line after it:
1
'3gp' =&#62; 'video/3gpp',
Done!
You may want to add other filetypes you also enjoy here. </description>
		<link>http://phpplanet.org/sorry-this-file-type-is-not-permitted-for-security-reasons/</link>
			</item>
	<item>
		<title>All About PHP Hosting</title>
		<description>Before developers can serve their website to the world, they need to decide on which of the many web hosting companies to use. One criterion that web developers look for in a hosting company is support to run applications. Because many applications on the web are written using PHP, developers ...</description>
		<link>http://phpplanet.org/all-about-php-hosting/</link>
			</item>
	<item>
		<title>showing subcategories on WordPress category pages</title>
		<description>show the subcategories for a given category on it's category page .Basically you need to check whether there are any children, and if there are, list the categories with the current category as a parent or grandparent. The following code does just that:
if (is_category()) {
  $this_category = get_category($cat);
  ...</description>
		<link>http://phpplanet.org/howing-subcategories-on-wordpress-category-pages/</link>
			</item>
	<item>
		<title>Stop Junk Characters ‘â€TM’ from Appearing Instead of an Apostrophe</title>
		<description>After my latest WordPress update (which as a manual one, with a whole lot of  mysql issues!) I finally got my blog up and running again, only to find all my apostrophes appearing as “â€TM” –stupid junk characters. After going into panic mode for about two minutes, I figured out ...</description>
		<link>http://phpplanet.org/stop-junk-characters-%e2%80%98aetm%e2%80%99-from-appearing-instead-of-an-apostrophe/</link>
			</item>
	<item>
		<title>Get the first sentence with PHP</title>
		<description>use this function ::
function first_sentence($content) {

    $pos = strpos($content, '.');

    if($pos === false) {
        return $content;
    }
    else {
        return substr($content, 0, $pos+1);
  ...</description>
		<link>http://phpplanet.org/get-the-first-sentence-with-php/</link>
			</item>
	<item>
		<title>Remove unnecessary space between lines in dreamweaver</title>
		<description>Sometimes code in dreamweaver got space in between. This will make your code very lengthy and hard to read. To remove the space you can use this method in Dreamweaver
1. Open the file (source code)2. Click CTRL + F3. Select “Current document” in “Find in” (You can also select the ...</description>
		<link>http://phpplanet.org/remove-unnecessary-space-between-lines-in-dreamweaver/</link>
			</item>
	<item>
		<title>Display latest post title</title>
		<description>just add this

&#60;?php   wp_get_archives('title_li=&#38;type=postbypost&#38;limit=10'); ?&#62;

it will add title with link inside &#60;li&#62;&#60;/li&#62; </description>
		<link>http://phpplanet.org/display-latest-post-title/</link>
			</item>
</channel>
</rss>

