PHP Notice: Undefined index How To Fix This
<p>i am getting PHP Notice:  Undefined index error in my site.</p>

<blockquote>
  <p>PHP Notice:  Undefined index:  title in /home/kashan/public_html/ifunnygag.com/templates/wlol_v1/pages/header.php on line 41
  [15-Apr-2013 06:36:42] PHP Notice:  Undefined index:  url in /home/kashan/public_html/ifunnygag.com/templates/wlol_v1/pages/header.php on line 42</p>
</blockquote>

<pre><code>var opts = {
Line 40 message : '&lt;?php echo $file['title'];?&gt;',
Line 41 name : '&lt;?php echo $file['title'];?&gt;',
Line 42 link : '&lt;?php echo $file['url'];?&gt;',
    description : 'Click to see pic...',
Line 44 picture : '&lt;?php echo $file['path'];?&gt;'

};

FB.api('/me/feed', 'post', opts, function(response)
{
    if (!response || response.error)
    {
        console.log(response);
    }
    else
    {
        console.log('Success - Post ID: ' + response.id);
    }
});
</code></pre>

<p>}</p>
