please be sure to download and install the CLIENT version, which i have linked you to.
follow the installers instructions to install filezilla ftp client
setting up filezilla to upload files to your host -
click on the open site manager button
1. click on new site
2. enter the name of your host. its the url that you would use to link to your site.
-i use www.startlogic.com but mine site name is legendkpr.startlogic.com. so i would use my site url.
-you can leave the port blank. it may cause problems if you dont know what port your hosts server uses
3. use ftp - file transfer protocol
4. use standard login.
5. this is where youre username goes. the name you use to login to your host.
6. password. same as the password you use to login to your host.
you can now click ok, and connect to your host. if you followed the steps correctly it should show a bunch of text and information while its connecting and then show the directories of your computer and youre webhost.
local files are your computers files and remote files are your hosts files.
STEP 2 - setup directories
create a folder and call it something like randomavatar (thats what i am using in this article)
inside this folder, create another folder called images (thats what i am using in this article)
STEP 3 - add images
inside the images folder, put all the images you want named with numbers from 0.
for example: 0.jpg , 1.jpg , 2.jpg , 3.jpg
(please note that all the images must be of the same file extension and that because the script is case sensative that the extensoins are all in lowercase)
because i wrote this script myself it supports any number of images so add as many as you want. just be sure they are in sequential order and no numbers are repeated and no numbers are skipped.
in the future i will write a script that allows for variable types of images, jpg gif png etc.
STEP 4 - the php script
the script is suprisingly the easiest part here
open up notepad++ and paste the following script.
save this script as randomavatarscript.php and put it in the randomavatar folder.