Add files via upload

This commit is contained in:
jdk 2023-03-02 00:15:21 +08:00 committed by GitHub
parent 7a589ce778
commit c557c83491
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

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

8
TV3 Normal file

File diff suppressed because one or more lines are too long