Location: PHPKode > scripts > Web montage > web-montage/randpic.php
#!/usr/bin/php
<?php
error_reporting(0);
/*
	load webmontage
*/
require_once('class.webmontage.php');

/*
	create an instance
*/
$ss = new webmontage;

/*
	set variable states
*/
$ss->cyclecount = 50;			//cycle repeats here canvas is updates 50x		
$ss->cyclewait = 5;				//wait between cycles (add to proc time) 
$ss->gpages = 5;				//how many Google pages to consider
//$ss->restart = true;			//cleans previous cycle data
//$ss->keeppic = true;			//decide if you want to keep retrieved pictures
$ss->cvswidth = 1590;			//canvas width
$ss->cvsheight = 962;			//vanvas size
$ss->dictionary = "lists/lost.lst";		//list with searchterm per line
$ss->gsize = 3;				//size of pictures
$ss->refresh = 15;				//refresh time for the html file
$ss->cvsbordergif = "borders/border.gif";	//optional bordergif to prettize things

/*
	call the engine to start cyceling a nice canvas together.
*/
$ss->cycle();

/*
	Remark: This is just a simple example of the power of webmontage see the documentation
	for more info.
*/
exit;

?>
Return current item: Web montage