I have this textarea in site A
In site B I have say stuff.html
What I want to do is have the content of stuff.html displayed in the textarea in Site A.
Sounds simple and sounds like it can be done by just displaying some PHP code between <texarea> and </textarea>. Well, tried and errored and I can't get it to work.
I have searched Google and saw many recommendations of the following:
All that happened was the included PHP was displayed in the textarea.
Any suggestions?
In site B I have say stuff.html
What I want to do is have the content of stuff.html displayed in the textarea in Site A.
Sounds simple and sounds like it can be done by just displaying some PHP code between <texarea> and </textarea>. Well, tried and errored and I can't get it to work.
I have searched Google and saw many recommendations of the following:
PHP:
<textarea>
<?Php
$file = $_SERVER['DOCUMENT_ROOT'] . "/text.txt"; //Path to your *.txt file
$contents = file($file);
$string = implode($contents);
echo $string;
?>
</textarea>
All that happened was the included PHP was displayed in the textarea.
Any suggestions?