Or better yet, use the following code, which will also work in case you use the private file system:<br>$img_tag = &#39;&lt;img src=&quot;&#39; . file_create_url($user-&gt;picture) . &#39;&quot;
/&gt;&#39;;<br><br><br><div class="gmail_quote">2009/8/17 Seth Freach <span dir="ltr">&lt;<a href="mailto:sfreach@gmail.com">sfreach@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




  

<div bgcolor="#ffffff" text="#000000">
Alexander,<br>
Picture location is a field in the $user object.  This will probably
get you what you&#39;re looking for:<br>
<br>
&lt;?php<br>
global $user;<br>
$img_tag = &#39;&lt;img src=&quot;&#39; . base_path() . $user-&gt;picture . &#39;&quot;
/&gt;&#39;;<br>
?&gt;<br>
<br>
If you need a function to call, you could just wrap the above in a
function that takes a uid parameter and do a user_load on it instead of
using the global $user object.<br>
<br>
-Seth<br>
<br>
Alexander Arul wrote:
<blockquote type="cite"><div><div></div><div class="h5">Hi all, <br>
  <br>
I want to generate the user&#39;s picture path using code. I thought there
might be an API function like <b>function user_image_path($uid)</b>,
but nothing like that so far .. please point me in the right direction,
thanks :)<br>
  <br>
Cheers<br>
Arul<b>  </b><br>
  </div></div><pre><hr width="90%" size="4">
--
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]</pre>
</blockquote>
</div>

<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br>