笔记|上传
上传页:up.htm
表单项要加enctype=”multipart/form-date”
处理页:upload.php
$f=$HTTP_POST_FILES['file'];
$dest_dir='uploads';
$dest=$dest_dir."/".date("ymd")."-".$f['name'];//文件夹+日期+文件名,防止因重名被覆盖.
$r=move_uploaded_file($f['tmp_name'],$dest); //move_upload_file(上传文件名,上传目录)
chmod($dest,0755); //设定文件权限chmod(文件名,权限一般是八进制的0755)
echo "图片上传成功,点击查看";
?>

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Dreamweaver Mac version
Visual web development tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Dreamweaver CS6
Visual web development tools
