Quote of the day from .txt file
Posted 24 September 2006 - 07:01 PM
just wanted to ask u if u know the code to load a text from a .txt file which will contain some html to load it as a "quote of the day"
Thank You very much, ur help is most appreciated.
Posted 24 September 2006 - 07:18 PM
making sure the have chmodded it to 0777
Posted 24 September 2006 - 07:25 PM
Posted 24 September 2006 - 07:56 PM
<?php $filename = "quotes.txt"; $file = file($filename); $file=shuffle($file); echo $file; ?>just remember to put each quote on a new line in the txt file
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users