Location: PHPKode > scripts > RTRandomImage > rtrandomimage/readme-install.txt
RTRandomImage ver 0.1

This script is a very simple php random images and text loader that doesn't requires mysql to run.

INSTALLATION

1. In the page where you want to run your script write the following line of code as show in index.php:
   <?php include("/path_to/random.php"); ?> on the top of the page   
   <?php echo "<img src=\"$image_folder/$image_name\" alt=\"$image_name\" />";?> where you want to show the random loaded image
   <?php include ("$image_folder/$text_name");?> where you want to show the relative text
2. Upload all files
3. Upload your images(format .jpg) and the relative text(format .txt) in your /images folder with this scheme:
First image:	1.jpg	text:	1.txt
Second image:	2.jpg	text:	2.txt
...
n image:	n.jpg	text:	n.txt

LICENSE:

This software is distributed under the MIT license:

Copyright (c) 2006 Roberto Toldo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the ”Software”), to deal in
the Software without restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ”AS IS”, WITHOUTWARRANTY
OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THEWARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.

I’d also appreciate if you inform me about your derived work, just to know
where my code goes :D.


If you have any comment or critic please write me(hide@address.com)
Return current item: RTRandomImage