The file has these lines:
<?php
$quote = file("inchrist.txt");
srand((double)microtime()*1000000);
echo $quote[rand(0,count($quote))];
?>
The file in $quote is in the same directory as the PHTML file. This works fine.
When I put it in a Nuke Block, it cannot find the "inchrist.txt" file. I've tried putting it in the root HTML directory and in the Blocks directory. Any ideas where the file should be and the correct syntax for the $quote statement?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum