I'm not sure whats happening here. I tried the relative path, as well as the url path, took out the whitespaces that forced the %20, everything, but I cannot get this script to work, it refues to open the directory Bold text is where the problem is I think
<?
include("http://www.amethyst-creations.com/_header.php");
$title = "100 acre woods > Page 1";
include ('http://www.amethyst-creations.com/title.php');
?>
<?
[B]$path = "wwww.amethyst-creations.com/graphics/glitter/100 acre woods/Page 1/";
//using the opendir function
$dir_handle = @opendir($path) or die("Unable to open $path");
[/B]
echo "<table width=\"100%\" align=\"center\">
<tr>
<td style=\"padding-right: 10px;\"><div class=\"text\"><div align=\"center\">Just copy and paste the code where you would like the picture to be!<br></div>
<br>";
//running the while loop
while ($file = readdir($dir_handle))
{
if($file!="." && $file!="..")
echo " <table border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td style=\"padding-right: 10px;\" class=\"too\"><a href=\"http://www.amethyst-creations.com/graphics/glitter/100 acre woods/Page 1/$file\" target=\"_blank\"><img src=\"http://www.amethyst-creations.com/graphics/glitter/100 acre woods/Page 1/$file\" width=\"150\" height=\"150\" border=\"1\" style=\"border-color: 000000;\"></a><br><div align=\"center\"><a href=\"http://www.amethyst-creations.com/graphics/glitter/100 acre woods/Page 1/$file\" target=\"_blank\">Click to Enlarge</a></div></td>
<td class=\"too\" valign=\"top\"><div style=\"padding-bottom: 5px;\"></div>
<textarea name=\"textarea2\" cols=23 rows=8 class=\"bginput\" onClick=\"this.focus();this.select()\"><a href="http://www.amethyst-creations.com/layouts" target="_blank"><img src="http://www.amethyst-creations.com/graphics/glitter/100 acre woods/Page 1/$file" border="0"></a>
<a href="http://www.amethyst-creations.com/layouts/" target="_blank"><img src="http://www.amethyst-creations.com/layouts/support.gif" alt="Myspace Layouts" style="position:absolute; left:0px; top: 0px;" border="0"></a> </textarea></td>
</tr>
</table>
<br />
<br>";
}
echo "
</td>
</tr>
</table>";
closedir($dir_handle);
?><center><a href="http://www.amethyst-creations.com/graphics/glitter/100 acre woods/Page 2.php">Next Page ></a></center>
<br><br><?
include("http://www.amethyst-creations.com/inc/ads1.php");
include("http://www.amethyst-creations.com/_footer.php");
?>
The end result is here
Any suggestions? Hosting server is PHP4 or 5. but 5 has URL based file operations disabled so I'm using 4