random images from remote host?
Posted on 2001-07-19
I have a site that pulls random images from my own server, this is no problem...
I would like to provide people with the ability to add their own random photos... However I do not want to host these images... I want, what seemed simple enough, for them to provide me with a url where they can be found.
I have forms in place that when filled out place a cookie on the users machine, containing the URL to the folder full of images...
I also have no problem reading that url... I have it stored in a variable called "mypath" the problems occur when using the next lines of code:
Set folder = filesystem.GetFolder(server.mappath(mypath))
Set filesystem = CreateObject("Scripting.FileSystemObject")
Set filecollection = folder.Files
I fully understand that when using mappath, it maps whatever server the asp file resides on... along with the FileSystemObject and the ability to see those files.
I can find no alternative to actually mapping the server... I want the ability to name my image files whatever I'd like (as opposed to just numbers) and eventually the ability to allow shockwave files to be pulled at random also.
Essentially, I want to pull random images from remote hosts...
i hope this makes sense...