How to allow PHP to find functions
<p>I am new to PHP. I have a function that is in a folder. PHP can't seem to find this function. What can I do to allow PHP to find/see the file that contains the function I am trying to use?</p>

<p>EDIT:</p>

<p>Here is the code I am using</p>

<pre><code>&lt;?php

include './blog/wp-includes/post.php';

$recent_posts = wp_get_recent_posts();
foreach( $recent_posts as $recent )
{
echo '&lt;li&gt;&lt;a href="' 
        . get_permalink($recent["ID"]) 
        . '" title="Look '
        .esc_attr($recent["post_title"])
        .'" &gt;' 
        .   $recent["post_title"]
        .'&lt;/a&gt; &lt;/li&gt; ';
    }
</code></pre>

<p>but when I execute the code, I get:</p>

<pre><code>Fatal error: Call to undefined function add_action() in /home/hilan1/public_html/site/blog/wp-includes/post.php on line 144
</code></pre>
