Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: upload script

Parašė Mantas_· 2010 Bal. 17 21:04:03
#1

Sveiki, tarkim turiu toki sriptą.

 <?php
 $target = "upload/";
 $target = $target . basename( $_FILES['uploaded']['name']) ;
 $ok=1;
 if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target))
 {
 echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded";
 }
 else {
 echo "Sorry, there was a problem uploading your file.";
 }
 ?>




Kaip padaryti man kad tą failo nuoroda siųstu man į email?

Parašė Deiviux.eu· 2010 Bal. 17 21:04:23
#2

Su mail() funkcija. Google it. Arba php.net

Parašė Mantas_· 2010 Bal. 18 09:04:29
#3

Tą tai suprantu, bet man neaišku, ką atvaizduoti POST'e :?