
Not quite as cool as I imagined it, but a lot of fun to write nonetheless.
-- Vilkacis



Lupin wrote:Mine, at least, is a real simple php script that selects a random image from the directory it's in.

It's based on someone elses script, but I ended up ripping most of the old script out and replacing it with my own code.Figarou wrote:Lupin wrote:Mine, at least, is a real simple php script that selects a random image from the directory it's in.
interesting. Did you write this yourself?
Code: Select all
Redirect /fractal/randomav.jpg http://www.thevilkacis.net/fractal/randomav.php
Yeah, that's why I stuck all of it in it's own directory. I have a bad habit of sticking large images in ~lupin/ so I figured that accidently using one of those would be a bad idea.Figarou wrote:I'm not sure what I did, but I tried to post the code/script into my website. I even got help from Vilkacis. It is cool to have different pics show up. But its not worth losing your website if you place the code in wrong.
I still think its cool though.
Nope. If you try to link to a php file for your avatar, it will display a blank "error" message and reject your change. Furthermore, if you try to link to it with the tags, it won't recognize it:Lupin wrote:It won't? I was wondering about that. I just used the redirect because I was too lazy to edit my profile for the new image.


I don't know why I didn't think of this earlier, but there's a real easy workaround. Just apppend a slash and a 'legal' filename to the end of the url.Vilkacis wrote:
Nope. If you try to link to a php file for your avatar, it will display a blank "error" message and reject your change. Furthermore, if you try to link to it with the tags, it won't recognize it: