TinyPortal

Development => Block Codes => Topic started by: datu on July 02, 2006, 09:29:43 PM

Title: Justify alignment
Post by: datu on July 02, 2006, 09:29:43 PM
How would you justify align the text called from RandomQuote.php script? I messed with it from another script I have that uses justification but i get parse errors..

Here is the code:

<?php
/************************************
DEVELOPED BY REDSHIFT SOFTWARE
HTTP://SOFTWARE.REDSHIFT.JE
************************************/


// Name of your quote file
$quote_file = "RSQuotes.txt";
// Open the quote file
$fp = fopen($quote_file, "r");
// Read the contents and tokenize the file to individual quotes
$quotes = fread($fp, filesize($quote_file));
$array = explode("\n",$quotes);
fclose($fp);
// Find a random quote
srand((double)microtime()*1000000);
$array_index = (rand(1, sizeof($array)) - 1);
// Show the random quote
echo $array[$array_index];
?>


any ideas?

thnx...