<?php
/********************************************
A very simple little piece of PHP to include a random bit of text/html into any php page.
Just edit the default value and the array, then add an include statement to a php like;
include "randomb.php";
where you want the random bit to be within the page.
Note the array can be expanded/decreased to have as many values as you want
If you like or find this little piece of PHP of value just let someone know about
pWidgets or add a link on your site to ours.
pWidgets - <a href=\"http://www.pwidgets.com\" target=\"_blank\">http://www.pwidgets.com</a>
Thank you!
**********************************************/
$default = "If you like or find this little piece of PHP of value just let someone know about pWidgets or add a link on your site to ours. pWidgets - <a href=\"http://www.pwidgets.com";\" target=\"_blank\">http://www.pwidgets.com";</a>
$randomb = array("Random Value 1 If you like or find this little piece of PHP of value just let someone know about pWidgets or add a link on your site to ours. pWidgets - <a href=\"http://www.pwidgets.com"\" target=\"_blank\">http://www.pwidgets.com"</a>, "Random Value 11ąąąą add random bit to your site");
$total_randomb = sizeof($randomb); $randomb_num = rand(0
,$total_randomb);
$randombtext = $randomb[$randomb_num];
if ($randombtext == "") {
$randombtext2 = $default;
}
else {
$randombtext2 = "$randombtext";
}
?>
jak zmienic kodowanie skryptu na UTF-8