View Single Post
Old 09-09-2008, 21:04   #4
ikthius
Inactive
 
ikthius's Avatar
 
Join Date: Mar 2004
Location: Glasgow, Scotland
Services: anything for a new job
Posts: 4,165
ikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronze
ikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronze
Re: random content on page load

I have got a script that reads random text files so far... I found this while searching how to's here: http://uk2.php.net/

PHP Code:
<?php
$random 
rand(13);
$myFile "$random.txt";
$fh fopen($myFile'r');
$theData fgets($fh);
fclose($fh);
echo 
$theData;
 
?>
ok, I think I know how I can go about this, ok its going to be a bit of work at the start until I can get an easier user friendly version.

but, is there anyway I can force my area, that I want to echo out to, stay at the size I intended it to be, as with this, the table columnis changing size.

or will this have to be done by using the \n in the text file?

forget that, I am going down teh array route now, as it keeps the page looking fine.

ik
ikthius is offline   Reply With Quote