Here was my main trouble:
$curdir = dirname(stripslashes($_SERVER["PATH_TRANSLATED"]));
if(!is_dir($thumbdir))
{
//$curdir starts as: /home/server/public_html/Fold
$ind= strpos($curdir, "/", 0);
$ind= strpos($curdir, "/", $ind+1);
$ind= strpos($curdir, "/", $ind+1);
$ftpDir= substr($curdir, $ind+1, strlen($curdir)-$ind+1);
//$curdir ends as: public_html/Fold
FtpMkdir($ftpDir, $thumbdir);
}
function FtpMkdir($path, $newFolderName)
{
I had to strip off home and server for the path to work right for ftp. Is that normal? Is there a way around it?