Bu web Sabit Sürücü kopyalayıp mümkün mü?

0 Cevap php

Ben sadece kişisel kullanım için bir sayfa oluşturmak için çalışıyorum. Ne yapmak istiyorum ben WAMP gibi localhost ile bağlantı sağlayarak doğrudan, benim yerel sabit diskine görüntüleri indirebilirsiniz hangi aracılığıyla bir sistem oluşturmak olduğunu. Ben yapmaya çalışıyorum nedeni görüntüleri otomatik olarak benim sabit diske sıralanmasını istediğiniz vardır. Benim form alanı gibi bir şey bu olacak

<form method="POST" action="process.php">
   <input type="text" name="URL" id="URL" />
   <input type="text" name="category" id="category" />
   <input type="text" name="subcategory" id="category" />
   <input type="submit">
</form>

Artık, içindeki process.php

//This is just a sample... So please ignore the roughness of the coding

copy($_POST['url'],$_POST['category']."/".$_POST['subcategory']."/somename.jpg");

// If you noticed, the categories and subcategories are actually the name of directory, where I want the picture to go be saved....

Benim yaklaşım yanlış düşünüyorum. Nasıl böyle bir şey elde edebilirsiniz?

Error

Warning: copy(images/image.jpg) [function.copy]: failed to open stream: No such file or directory in

0 Cevap