•December 25, 2007 •
Leave a Comment
Simple way to mix elements of an array made with glob() & shuffle() functions:
<?php
function randomize() {
$pics = glob("*.jpg");
shuffle($pics);
return $pics[0];
}
echo '<img src="/images/' . randomize() . '.jpg" alt="" />';
?>
In this case the elements are JPEG files.
Posted in php
Tags: glob, img, jpeg, php, pictures, programming, random, randomize, shuffle
•December 25, 2007 •
1 Comment
You can run this command from the terminal:
vlc -I ncurses lista.m3u
This way you can use it also to see video files and dvd.
Posted in audio, linux, video
Tags: bash, dvd, linux, mp3, ncurses, ogg, terminal, vlc
•December 25, 2007 •
Leave a Comment
PHP allows you to grub information from the server with simple functions as phpinfo():
<?php
phpinfo();
?>
Posted in apache, php
Tags: apache, php, programming