xxxx
This commit is contained in:
9
scripts/img.php
Normal file
9
scripts/img.php
Normal 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]");
|
||||
?>
|
||||
Reference in New Issue
Block a user