I've been trying to make a 'keyword maker'.
It's supposed to read words in a text file, and attach all of them in different combinations.
Here's what i have managed to do.
PHP Code:<?php
$file = file_get_contents('text.txt');
$file_words = explode(" ", $file);
$file_count = count($file_words);
for ($i=0; $i < $file_count; $i++){
echo $file_words[$i] . "<br />";
}
?>
And here's the text.txt file.
It should output:Code:name one two five
nameone
nametwo
namefive
onename
onetwo
onefive
...
Any suggestion or direction on how i am supposed to achieve the above mentioned results would be greatly appreciated.








Bookmarks