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,972
  • Latest: Lineo
Stats
  • Total Posts: 196,140
  • Total Topics: 21,346
  • Online today: 1,074
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 283
  • Total: 283

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


This website is proudly hosted on Crocweb Cloud Website Hosting.