This is the script i want to put on my pages server so it could be executed on my hosting servers directory
Lists the files in the directory:
<?
//specify the directory path
$path = "../";
//open the directory
$dir = @opendir($path) or die("cannot open $path");
//read and show the result
while (false !== ($files = readdir($dir))) {
echo "$files<br>";
}
//close the directory
closedir($dir);
?>
the hosting server is using this to include the pages on my 'pages' server
<? include("site.com/directorylist.php");
?>
im just wondering but would it work if you did echo or print for the top ones of these scripts so that my page server wouldnt be reading it?