Skip to content

flamez57/programme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

programme

收集有趣的编程

下面是关于文件上传的使用示例

<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>
<form enctype="multipart/form-data" method="post">

<input type="file" name="uploadfile"/>
<input type="submit" value="submit">
</form>
</body>
</html>



<?php
include('Flamez57Upload.php');
$upload = new \Flamez57\Flamez57Upload(['filepath' => 'upload', '$allowtype' => array('gif', 'jpg', 'png', 'jpeg'), 'maxsize' => '1000000', 'israndname' => true]); 

if ($upload->uploadFile('uploadfile')) {
	var_dump($upload->getNewFileName());
}

About

有趣的编程

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors