diff options
Diffstat (limited to 'bg.php')
| -rwxr-xr-x | bg.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2,7 +2,7 @@ //renaming to bg.php $dir = "walls/"; $files = scandir($dir); -$images = array_diff($files, array('.', '..')); +$images = array_diff($files, ['.', '..']); $name = $images[array_rand($images)]; // open the file in a binary mode $fp = fopen($dir . $name, 'rb'); |
