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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,964
  • Latest: stylix
Stats
  • Total Posts: 195,936
  • Total Topics: 21,312
  • Online today: 1,983
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 467
  • Total: 467

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...


This website is proudly hosted on Crocweb Cloud Website Hosting.