<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Getting filename and extension in PHP using explode() ,basename() and pathinfo()</title>
	<atom:link href="http://roshanbh.com.np/2008/01/getting-filename-and-extension-in-php-using-explode-and-pathinfo.html/feed" rel="self" type="application/rss+xml" />
	<link>http://roshanbh.com.np/2008/01/getting-filename-and-extension-in-php-using-explode-and-pathinfo.html</link>
	<description>Useful Tutorials, Scripts , Tips, and Resources for all PHP and Ajax beginners and experts .</description>
	<lastBuildDate>Tue, 07 Feb 2012 08:10:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Hardik</title>
		<link>http://roshanbh.com.np/2008/01/getting-filename-and-extension-in-php-using-explode-and-pathinfo.html/comment-page-1#comment-6766</link>
		<dc:creator>Hardik</dc:creator>
		<pubDate>Mon, 06 Feb 2012 06:20:47 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/01/getting-filename-and-extension-in-php-using-explode-and-pathinfo.html#comment-6766</guid>
		<description>this is really very usefull for me and save a lot time of mine keep going.</description>
		<content:encoded><![CDATA[<p>this is really very usefull for me and save a lot time of mine keep going.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bamwamba</title>
		<link>http://roshanbh.com.np/2008/01/getting-filename-and-extension-in-php-using-explode-and-pathinfo.html/comment-page-1#comment-5573</link>
		<dc:creator>Bamwamba</dc:creator>
		<pubDate>Wed, 04 Aug 2010 14:50:28 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/01/getting-filename-and-extension-in-php-using-explode-and-pathinfo.html#comment-5573</guid>
		<description>Hi Roshan, this is a brilliant post. Got a small problem. What if the filename is unknown for instance, if all you have is the name or rather the directory path? Using your example,  $parts = pathinfo(&#039;/var/website/htdocs/index.php&#039;); Lets imagine we didn&#039;t know the name of the file (index.php) but you have the directory (/var/website/htdocs/) how would you access it?

Kind Regards,</description>
		<content:encoded><![CDATA[<p>Hi Roshan, this is a brilliant post. Got a small problem. What if the filename is unknown for instance, if all you have is the name or rather the directory path? Using your example,  $parts = pathinfo(&#8216;/var/website/htdocs/index.php&#8217;); Lets imagine we didn&#8217;t know the name of the file (index.php) but you have the directory (/var/website/htdocs/) how would you access it?</p>
<p>Kind Regards,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Added by a PAL to FAQ PAL</title>
		<link>http://roshanbh.com.np/2008/01/getting-filename-and-extension-in-php-using-explode-and-pathinfo.html/comment-page-1#comment-3036</link>
		<dc:creator>Added by a PAL to FAQ PAL</dc:creator>
		<pubDate>Fri, 31 Oct 2008 09:11:10 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/01/getting-filename-and-extension-in-php-using-explode-and-pathinfo.html#comment-3036</guid>
		<description>&lt;strong&gt;Getting filename and extension in PHP using explode() ,pathinfo() and basename() - from full Path in PHP...&lt;/strong&gt;

Getting the extension from a file name or name of the file from the full path is not a big hassle for the experienced programmer but it might be a annoying task for the beginners of PHP....</description>
		<content:encoded><![CDATA[<p><strong>Getting filename and extension in PHP using explode() ,pathinfo() and basename() &#8211; from full Path in PHP&#8230;</strong></p>
<p>Getting the extension from a file name or name of the file from the full path is not a big hassle for the experienced programmer but it might be a annoying task for the beginners of PHP&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roshan</title>
		<link>http://roshanbh.com.np/2008/01/getting-filename-and-extension-in-php-using-explode-and-pathinfo.html/comment-page-1#comment-691</link>
		<dc:creator>Roshan</dc:creator>
		<pubDate>Thu, 24 Apr 2008 08:41:03 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/01/getting-filename-and-extension-in-php-using-explode-and-pathinfo.html#comment-691</guid>
		<description>Are you searching using database query then you can use &quot;%&quot; wild card character

where images like &quot;image%&quot;

hope this helps..</description>
		<content:encoded><![CDATA[<p>Are you searching using database query then you can use &#8220;%&#8221; wild card character</p>
<p>where images like &#8220;image%&#8221;</p>
<p>hope this helps..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chetan</title>
		<link>http://roshanbh.com.np/2008/01/getting-filename-and-extension-in-php-using-explode-and-pathinfo.html/comment-page-1#comment-689</link>
		<dc:creator>Chetan</dc:creator>
		<pubDate>Thu, 24 Apr 2008 07:46:33 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/01/getting-filename-and-extension-in-php-using-explode-and-pathinfo.html#comment-689</guid>
		<description>hi,
this trcks are working but i have one problem
that, i am stored uploaded path in db like &quot;/photo/Thumb/f/image.jpg&quot;.  When will search images form name like &quot;image&quot; then it will give proper output but i will put &quot;.jpg&quot; or &quot;*.jpg&quot; it can&#039;t work. So what should i do? please help and guide me
to overcome from that problem.

Thanks.

Regards
Chetan Chopkar</description>
		<content:encoded><![CDATA[<p>hi,<br />
this trcks are working but i have one problem<br />
that, i am stored uploaded path in db like &#8220;/photo/Thumb/f/image.jpg&#8221;.  When will search images form name like &#8220;image&#8221; then it will give proper output but i will put &#8220;.jpg&#8221; or &#8220;*.jpg&#8221; it can&#8217;t work. So what should i do? please help and guide me<br />
to overcome from that problem.</p>
<p>Thanks.</p>
<p>Regards<br />
Chetan Chopkar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roshan</title>
		<link>http://roshanbh.com.np/2008/01/getting-filename-and-extension-in-php-using-explode-and-pathinfo.html/comment-page-1#comment-117</link>
		<dc:creator>Roshan</dc:creator>
		<pubDate>Thu, 24 Jan 2008 16:49:03 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/01/getting-filename-and-extension-in-php-using-explode-and-pathinfo.html#comment-117</guid>
		<description>ya will you are absolutely right.I agree with you.
sorry that i&#039;ve forgotten to mention about that function, I will sure update the post thanks a lot for  reminding..</description>
		<content:encoded><![CDATA[<p>ya will you are absolutely right.I agree with you.<br />
sorry that i&#8217;ve forgotten to mention about that function, I will sure update the post thanks a lot for  reminding..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: will</title>
		<link>http://roshanbh.com.np/2008/01/getting-filename-and-extension-in-php-using-explode-and-pathinfo.html/comment-page-1#comment-110</link>
		<dc:creator>will</dc:creator>
		<pubDate>Wed, 23 Jan 2008 06:50:55 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/01/getting-filename-and-extension-in-php-using-explode-and-pathinfo.html#comment-110</guid>
		<description>your method is neat, but i don&#039;t understand why you didn&#039;t use php&#039;s built-in function ... basename();

it will automatically get the filename found at the end of a path, and all you would have to do is retrieve a substring from the . to the length of the filename....</description>
		<content:encoded><![CDATA[<p>your method is neat, but i don&#8217;t understand why you didn&#8217;t use php&#8217;s built-in function &#8230; basename();</p>
<p>it will automatically get the filename found at the end of a path, and all you would have to do is retrieve a substring from the . to the length of the filename&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP Coding School &#187; Blog Archive &#187; php tips [2008-01-22 10:38:26]</title>
		<link>http://roshanbh.com.np/2008/01/getting-filename-and-extension-in-php-using-explode-and-pathinfo.html/comment-page-1#comment-103</link>
		<dc:creator>PHP Coding School &#187; Blog Archive &#187; php tips [2008-01-22 10:38:26]</dc:creator>
		<pubDate>Tue, 22 Jan 2008 10:41:40 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/01/getting-filename-and-extension-in-php-using-explode-and-pathinfo.html#comment-103</guid>
		<description>[...]  Getting filename and extension in PHP using explode() and pathinfo()  By Roshan  Getting the extension from a file name or name of the file from the full path is not a big hassle for the experienced programmer but it might be a annoying task for the beginners of PHP. Now let me find the solution for them using two &#8230;   Roshan Bhattarai&#8217;s Blog - PHP&#8230; - http://roshanbh.com.np [...]</description>
		<content:encoded><![CDATA[<p>[...]  Getting filename and extension in PHP using explode() and pathinfo()  By Roshan  Getting the extension from a file name or name of the file from the full path is not a big hassle for the experienced programmer but it might be a annoying task for the beginners of PHP. Now let me find the solution for them using two &#8230;   Roshan Bhattarai&#8217;s Blog &#8211; PHP&#8230; &#8211; <a href="http://roshanbh.com.np" rel="nofollow">http://roshanbh.com.np</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/12 queries in 0.008 seconds using disk: basic
Object Caching 296/296 objects using disk: basic

Served from: roshanbh.com.np @ 2012-02-09 06:59:07 -->
