• Sorular
  • Etiketler

Symfony yerel dosyaları taşımak için fonksiyonu nedir?

1 Cevap php

Örnek, hareket /var/www/1.jpg için /var/www/aaa/1.jpg

1 Cevap

Bir dosyayı taşımak için, rename kullanabilirsiniz

Dosya bir tarih biri ise, move_uploaded_file bakmak isteyeceksiniz

İşte, böyle bir şey denemek isteyeceksiniz, sanırım:

rename('/var/www/1.jpg', '/var/www/aaa/1.jpg');


BTW : those two functions are included in PHP, and not specific to symfony ; maybe there is another special way with symfony... But if you have the required permissions to both files and directories, those should work just fine.

0

etiketler

  • php
  • upload
  • symfony1
  • Sorular
  • Etiketler
Copyright © 2014

Powered by EvrenWeb Int. Media.