Hello
I am kinda new to php coding and was wondering if I could get some help. What I am wanting to do is create Multiple html files from a list of words that I have. I know how to create a basic file using the fopen and fwrite commands with the following code
//This is the file name to create
//would like this to read a basic text file with words one on each line and create a file according.
$file = "./filename-based-on-word-in-textfile";
$fp = fopen ("$file", "wb");
//This is the content of each file
$content = "Hello, I am a File!";
fwrite($fp, $content);
fclose($fp);
//This is telling you what file it wrote to based on the text file
echo "Wrote to ($file):<pre>";
readfile($file);
echo "</pre>";
Any help would be appericated
Thanks
Shane