Try that
<?
$ftp = ftp_connect("your server");
ftp_login($ftp, "username", "password");
//this ligne take all caracters after the next Backslash in your Path of your images
//ex. : if $PathImg = "c:\windows\youimg.gif" , then $ImgName will equal yourimg.g
$ImgName = substr($PathImg,strrpos($PathImg, "\")+1,strlen($PathImg)-strrpos($PathImg, "\"));
$PathImg = htmlspecialchars($PathImg); //take away all speciaL html caracters like <, > , space, etc...
$ImgName = strtolower($ImgName); //Same than C++
$ImgName = strtr($ImgName,chr(32),"_"); //Take away all spaces in your Image Name (for linux, unix, etc...)
ftp_put($ftp, $ImgName, Stripslashes($PathImg), "FTP_BINARY"); //send ftp
?>
normally, it will works
tell me if errors
sorry bout my english,
Sylvain Giroux
Solution Globale informatique