Objective: Lawson Bishop has provided us with several members of finance staff from the Finance Director
to temporary assistance in busy periods.
Service Provided: We like to work with Lawson Bishop as they offer an honest and reliable service. I have been so impressed with the service and I particularly like how they send the highest calibre of candidates and how they listen and aim to match our wants and needs.
Specialists: The consultant who specialises within the charities sector has a great knowledge of the business
and the candidates thus we really relate on a professional level. I highly recommend using them.
:: Client Case Studies ::
:: Candidate Case Studies ::
//***************EDIT FROM HERE*********************
//Any directory name should end by the trailing "/"
$your_dirname="images/randomtestimonials/";//replace the "images/" by the name
// of the directory where you image files are placed, note that the trailing "/" is mandatory
//You can change this if you want but it is not mendatory
$your_alt_tag="Random Client and Candidate testimonials about Lawson Bishop";// You may change this line
//
/*
********************* STOP EDITING HERE ***********************************
*
* aaPHPrandomImage, version 1.1.2
* November 2002, Arcadius Ahouansou.
* for any comment or suggestion please email me at: ahouans@users.sourceforge.net
* A simple function for displaying random images and flash movies.
* a working demo of this script is running at:
* http://ahouans.sh.cvut.cz/projects/aaPHPrandomImage/
*
* Please this script works only on PHP4 or higher!
*30-NOV-2002: New release:
*Bug fix: PHP till today doesn't "see" Flash MX files as of .swf type
*(it doesn't assign the value 4 to $imageSize[2] ) a workaround have been found
*Thanks to the report submitted by Yuri K. Stembera
*
*08-NOV-2002: FOr gererating random number, the script now use mt_rand() instead of rand()...
* and the script check whether there is any file in the image directory before generating the
* random images... so if there is no image, it will print out an error message
*
*
*15-OCT-2002: Bug fix: On some server, "Warning: stat failed for (errno=2 - No such file or directory)"
*This have been fixed using @is_dir() instead of is_dir [Thanks to Ben Weinberger, Digitalsmith.com]
*
* First release in July 2002.
*/
function displayaaphprandomimage($dirname, $alt){
$dirhandle = opendir($dirname);
while (false !== ($file = readdir($dirhandle))) {
if ($file != "." && $file != ".." && !@is_dir($file) ) {
$filelist[] = $file;
}
}
closedir($dirhandle);
if(sizeof($filelist) ==0) {
echo "No file was found in the directory!";
exit;
}
srand((double)microtime()*1000000);
$picnum = @mt_rand(0, sizeof($filelist) - 1);
$imageName=$dirname.$filelist[$picnum];
$imageSize = getimagesize($imageName);
if($imageSize[2]==4 || eregi(".swf$", $imageName) ) {
$result="\n";
} else $result="\n";
return $result;
}
?>
=displayaaphprandomimage($your_dirname, $your_alt_tag)?>