Iītring to do an upload images files script for my remote site. I have tried this into my local machine and run well, i know that run correctly because my local site(my machine) i donīt need user/pass to access. But my site need autentification pass/user, I put my script into my remote site and I have this error.
Warning: Unable to create '/home/sites/site40/web/lignea/img/maria.jpg': Permission denied in /home/sites/site40/web/lignea1/imatge.php on line 24 failed to copy ... the script is: <?php define("GIF", "1"); define("JPG", "2"); define("PNG", "3"); define("SWF", "4"); $size = GetImageSize($fitxer); $fitxer_name="maria"; $fitxer2=dirname($fitxer)."/".$fitxer_name; print ($fitxer2."<br>"); $fitxer2=strtolower(str_replace(" ","",$fitxer2)); move_uploaded_file($fitxer,$fitxer2); $fitxer3=$DOCUMENT_ROOT."/lignea/img/".$fitxer_name; print $fitxer3; if (!copy($fitxer2, $fitxer3.'.jpg')) { print ("failed to copy $file...<br>\n"); } unlink($fitxer2); ?> Thanks. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]