MindPalette Discussion Forum

Random text to image

MindPalette tutorials and scripts

Random text to image

Postby m-low on 05/29/2009 @ 16:57

Hey newbie here...

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
m-low
 
Posts: 2
Joined: 05/29/2009 @ 16:46

Re: Random text to image

Postby m-low on 05/29/2009 @ 17:27

So, it doesn't work...

I'm pretty sure that my current service provider has php extensions, so I'm not sure if it's them or this my coding. Any help would be much appreciated. Thanks

See site here: www.442mcadam.com
(should be a big picture to the right of the nav bar)
m-low
 
Posts: 2
Joined: 05/29/2009 @ 16:46


Return to Tutorials and Scripts

Who is online

Users browsing this forum: No registered users and 1 guest

cron