TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 19, 2024, 04:16:21 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,164
  • Total Topics: 21,219
  • Online today: 266
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 231
  • Total: 231

Justify alignment

Started by datu, July 02, 2006, 09:29:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

datu

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($fpfilesize($quote_file)); 
$array explode("\n",$quotes); 
fclose($fp); 
// Find a random quote
srand((double)microtime()*1000000); 
$array_index = (rand(1sizeof($array)) - 1); 
// Show the random quote
echo $array[$array_index]; 
?>


any ideas?

thnx...