<?
require_once("img_function.php");
$obj=new image_v1();
?>
<?
if(isset($_REQUEST['submit']))
{
$file_display=$obj->upload('file_name','folder1');
if($file_display[1] == 1)
echo $obj->display($file_display[0], "folder1", $file_display[1]);
else
echo $file_display;
}
?>
<form action="test.php" name="form" method="post" enctype="multipart/form-data">
<input type="file" name="file_name"/>
<input type="submit" name="submit" value="upload" >
</form>
|