Sabtu, 27 Juli 2013

PHP Indonesia - Facebook: permisi mastah, mohon untuk di cek.

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
permisi mastah, mohon untuk di cek.
Jul 27th 2013, 22:04, by Goenaone Adj

Goenaone Adj 10:04pm Jul 27
permisi mastah, mohon untuk di cek.

<html>
<head>
<title>:.Upload File.:</title>
</head>
<body>
<?php
$userfile = $_FILES['userfile']['tmp_name'];
$nama_file = $_FILES['userfile']['nama'];
$ukuran_file = $_FILES['userfile']['size'];
$tipe_file = $_FILES['userfile']['type'];
$file_error = $_FILES['userfile']['error'];
if($file_error > 0)
{
echo 'Error: ';
switch ($file_error)
{
case 1: echo 'ukuran file melebihi upload_max_file size'; break;
case 2: echo 'ukuran file melebihi max_file size'; break;
case 3: echo 'hanya sebagian file yang terupload'; break;
case 4: echo 'tidak ada file yang di upload'; break;
}
exit;
}
if ($tipe_file !='text/plain')
exit ('Error: tipe file bukan text biasa');
@ $baca_dir = opendir('temp/');
if (!$baca_dir)
{
mkdir('temp/', 0777);
$letak_file='temp/'.$nama_file;
}
else
$letak_file ='temp/'.$nama_file;
closedir($baca_dir);
if(is_uploaded_file($userfile))
{
if(!move_uploaded_file($userfile, $letak_file))
exit('Error: Tidak dapat mengupload file ke direktori tersebut');
else
{
echo 'File berhasil di upload<br><br>';
echo 'Lihat folder <a href="temp/">temp/</a>.';
}
}
?>
</body>
</html>

Gunawan Mujur Wibisono 10:07pm Jul 27
bagaimana kl ganti move_upload dgn copy

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar