| Server IP : 61.19.30.66 / Your IP : 216.73.216.59 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /var/www/gpa/journal/ |
Upload File : |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>testblob</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<?php
require_once('config.php');
if( $HTTP_POST_FILES['datafile']['size'] > 0 ){
$fname = $HTTP_POST_FILES['datafile']['name'];
$ftype = $HTTP_POST_FILES['datafile']['type'];
$fcontent = file_get_contents($HTTP_POST_FILES['datafile']['tmp_name']);
$fcontent = addslashes($fcontent);
$id = $_POST['dataid'];
$query = "INSERT INTO testblob (id,fname,ftype,fcontent) VALUES ('$id','$fname','$ftype','$fcontent');";
setQ($query);
echo "Successful save file<br />";
}else {
echo "Cannot save file<br />";
}
?>
<form action="showblob.php" method="post" enctype="multipart/form-data">
<input type="text" name="idname" size="30" maxlength="100">
<input type="submit" value=" show ">
</form>
</body>
</html>