[eluser]eoinmcg[/eluser]
is this question related in anyway to codeigniter?
you need to read up on directory paths.
if your script resides at
/home/content/m/a/y/mayisthree3/html/skycad/fence/wen-demo-fence.php
and you want to open the dir
/home/content/m/a/y/mayisthree3/html/skycad/fence/Fence01
then $dir should be
alternatively use absolute paths, i.e.
Code:
$dir = $_SERVER['DOCUMENT_ROOT'] . '/path/to/dir';