Add files via upload

This commit is contained in:
jdk 2023-03-02 00:28:43 +08:00 committed by GitHub
parent d5a679907d
commit 95ecf2d189
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

9
img.php Normal file
View File

@ -0,0 +1,9 @@
<?php
/**
* PHP随机图显示
*/
header('Content-Type: text/html; charset=UTF-8');
$img_array = glob("./img/*.jpg",GLOB_BRACE);
$img = array_rand($img_array);
header("location:.$img_array[$img]");
?>