How to change relative path to full path in php?
<p>I have a WordPress plugin, where I would like to change a relative path part to a full path. The reason is my smf forum is not on the same server as my WP site.</p>

<p>This is the part where the relative path is: </p>

<pre><code>if (file_exists($_SERVER{'DOCUMENT_ROOT'}.get_option('smf_path').'/SSI.php')){
    require_once($_SERVER{'DOCUMENT_ROOT'}.get_option('smf_path')."/SSI.php");
    require_once($_SERVER{'DOCUMENT_ROOT'}.get_option('smf_path')."/Sources/Subs-Post.php");
    require_once($_SERVER{'DOCUMENT_ROOT'}.get_option('smf_path')."/Sources/RemoveTopic.php");
}
</code></pre>

<p>How could I enter my forum's path (eg. www.myforum.com/forum)?</p>

<p>Thanks in advance!</p>
