上传新文件

This commit is contained in:
chuqiuyu
2022-09-19 09:51:53 +08:00
parent d36e83316a
commit 49475a29bd

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]");
?>