unsuscribe me

From: Date: Sat, 06 Oct 2001 18:23:12 +0000
Subject: unsuscribe me
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-9726@lists.php.net to get a copy of this message
unsuscribe me ----- Original Message ----- From: "Alexandre Busquets Trioal" <alex@triplevedoble.net> To: <php-windows@lists.php.net> Sent: Friday, October 05, 2001 1:25 PM Subject: [PHP-WIN] uploading files > 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: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.windows (#9726) next »