Trying to create a random image using the random text files provided by this site. Quick run down:
- didn't not alter the GetRandomText.php file
- changed text in Random.txt file to say "*divider* campaign/[image file name].jpg"
The two files were uploaded to the main directory which includes the *.html file (index.html) that requires the random text. All the images are located in a folder called "campaign".
In the file that requires the random text, I've included the following code:
- Code: Select all
<div style="position:absolute;top:16px;left:32px;width:408px;height:529px;">
<img src='<?php include_once("GetRandomText.php"); $MPTextFile = "random.txt"; $MPSepString = "*divider*"; $MPTextToHTML = false; MPPrintRandomText($MPTextFile, $MPSepString, $MPTextToHTML); ?>' alt="" height="529" width="408" border="0" />
</div>
I haven't been able to test this out because I'm in the process of switching service providers (to one that has php and mysql extensions). Could someone let me know if I'm doing this right? It seems too simple... or these random text files are simply just awesome.
Thanks. I really appreciate it.
m-low