Hello. I really hope you guys can help me with this query.
Say I have a simple PHP code like the following in a web page called display.php:
<?PHP
$ShowBid = 0;
$Terms = "home based business";
$Page = "1";
?>
Now I have a list of keywords in a text file called 'terms_array.txt,' one per line like so:
work from home
work at home
home job
home business
web business
I want the variable '$Term,' to be assigned a randomly selected keyword found in the terms_array.txt file each time the display.php page is loaded.
So it could say:
$Terms = "web business";
or...
$Terms = "work at home";
or...
$Terms = "home job";
And so forth.
How can such a routine be scripted using PHP? I want the code to be very fast, meaning I don't want the page taking forever to load, because 25 lines of PHP code is being performed beneathe the page.
Please help. Thanks.



