I am trying to pull and load an html file into a textarea (that I will later use tinymce or ckeditor on probably) however it ONLY shows files if they are loaded into the same folder as the .php page. I feel like I am missing something but I need to be able to pull them from other folders on the same server and domain.
I've attempted putting in the full paths in $filename = "" however if it isn't in the same folder it just appears blank.
<!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" />
<title>Untitled Document</title>
</head>
<body>
<textarea cols="30" rows="10">
<?php
$filename = "../projectevo/new-page-6.html";
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
fclose($handle);
echo $contents;
?>
</textarea>
</body>
</html>