Skip to content

Commit

Permalink
Cleanup, I removing error reporting and replacing the div
Browse files Browse the repository at this point in the history
  • Loading branch information
lotsofcode committed Apr 5, 2012
1 parent 2030679 commit 420d775
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions playing.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
<?
ini_set('display_errors','On');
error_reporting(E_ALL);
include 'classes/tagcloud.php';
?>

<link rel="stylesheet" type="text/css" href="./css/tagcloud.css" />

<!-- <div style="width: 200px"> -->
<div style="width: 200px">

<?
include 'classes/tagcloud.php';
$cloud = new tagcloud();

/* adding a string */
$cloud->addString("This is a tag-cloud script, written by Del Harvey. I wrote this tag-cloud class because I just love writing code.");

Expand All @@ -28,11 +23,11 @@
$cloud->setRemoveWords(array('del','harvey'));

/* more complex adding */
$cloud->addWord(array('word' => 'php', 'url' => 'http://www.php.net', 'colour' => 1));
$cloud->addWord(array('word' => 'ajax', 'url' => 'http://www.php.net', 'colour' => 2));
$cloud->addWord(array('word' => 'css', 'url' => 'http://www.php.net', 'colour' => 3));
$cloud->addWord(array('word' => 'php', 'url' => 'http://www.php.net', 'colour' => 1));
$cloud->addWord(array('word' => 'ajax', 'url' => 'http://www.php.net', 'colour' => 2));
$cloud->addWord(array('word' => 'css', 'url' => 'http://www.php.net', 'colour' => 3));

/* set the minimum length required */
/* set the minimum length required */
$cloud->setMinLength(3);

/* limiting the output */
Expand Down

0 comments on commit 420d775

Please sign in to comment.