I have TinyMCE working perfectly from a single php script but when I break it down to be included in my site from a PHP function, I only get a blank textarea box. After several tests I have come to the conclusion that the issue is URL passing from TinyMCE. The codes below work flawlessly:
//localhost/include/textarea.php

Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="http://localhost/tinymce/tinymce.min.js"></script>
    <script type="text/javascript">
    	tinymce.init({
    		selector: "#addingTextarea",
    		theme: "modern",
    		menubar: "false",
    		theme_advanced_font_sizes: "10px,12px,13px,14px,16px,18px,20px",
    		font_size_style_values: "12px,13px,14px,16px,18px,20px",
    		plugins: [
    			"smileys textcolor wordcount "
    		],
    		toolbar1: "fontselect |  fontsizeselect | bold | italic | forecolor | backcolor | smileys",
    		image_advtab: false,
    	});
    </script>
    </head>
    
    <body>
    <?php
    include'../include/textareafunc.php';
    TextAreastart();
    ?>
    </body>
    </html>
localhost/include/textareafunc.php

Code:
   <?php
    function TextAreastart()
    {
    	TextAreaNew();
    }
    
    function TextAreaNew()
    {
    ?>
    <form method="post" action="somepage">
        <textarea id="addingTextarea" name="content3" style="width:90%"></textarea>
    </form>
    <?php
    }
    ?>
Yes the functions seem reduntant but I wanted to complicate it to guarantee it would work for my purposes. The result is a properly functioning TinyMCE textrea. However, when I C&P the two Javascripts to my localhost/index.php in the HEAD and call for the Textareastart function from localhost/include/profilefunc.php, all I get is that cursed textarea with no TinyMCE features.
I have checked the TinyMCE site and found something about the URL directions, so I attempted to modify my JavaScript in localhost/index.php as such:

Code:
   <script type="text/javascript">
    	tinymce.init({
    		selector: "#addingTextarea",
    		theme: "modern",
    		menubar: "false",
    		relative_urls: true,
    		document_base_url: 'http://localhost/tinymce/',
    		theme_advanced_font_sizes: "10px,12px,13px,14px,16px,18px,20px",
    		font_size_style_values: "12px,13px,14px,16px,18px,20px",
    		plugins: [
    			"smileys textcolor wordcount "
    		],
    		toolbar1: "fontselect |  fontsizeselect | bold | italic | forecolor | backcolor | smileys",
    		image_advtab: false,
    	});
    </script>
as well as:

Code:
    <script type="text/javascript">
    $( document ).ready(function() {
    	tinymce.init({
    		selector: "#addingTextarea",
    		theme: "modern",
    		menubar: "false",
    		relative_urls: true,
    		document_base_url: 'http://localhost/tinymce/',
    		theme_advanced_font_sizes: "10px,12px,13px,14px,16px,18px,20px",
    		font_size_style_values: "12px,13px,14px,16px,18px,20px",
    		plugins: [
    			"smileys textcolor wordcount "
    		],
    		toolbar1: "fontselect |  fontsizeselect | bold | italic | forecolor | backcolor | smileys",
    		image_advtab: false,
    	});
    });
    </script>
but it changes nothing. What am I doing wrong???