Jump to content

Recommended Posts

Posted

I'm thinking of creating a site to promote web standards among web sites in Wales.

 

Users can add their sites to a directory and can display a good4wales button if they're site is Valid [W3] and offers bilingual content and contains no unsuitable content etc.

 

Thus creating a good4wales site directory.

 

Is this something I can do off my own back or will I need to recieve authority from another organisation to do this?

 

I know there are a lot of sites that have schemes like this [none that I can find for Wales specifically].

 

I would appreciate any feedback as to wether this a reasonable idea or is it something only major organisations can do?

 

Thumbs Up

 

rock2.gif

Posted

Thanks Borfast. :)

 

By the way I've meaning to ask. . .

Do you manually change your Avatar on a regular basis or have you someother clever way of doing it.

 

:)

Posted

I change it every 10 minutes. If you pay attention, you'll see that there are times when it doesn't change - that's when I'm not home, so I can't change it.

 

OK, I'm just kidding, of course! :)

 

It's a script on my webserver. I know I posted how to do it somewhere here on the forums, in response to someone's question about PHP and generating text in images.

Let me try to find it........ got it:

http://www.totalchoicehosting.com/forums/i...?showtopic=3042

Posted

OK, just to see if understood all that.

 

Your avatar is a PHP file with an image extension.

 

The PHP file contains the necessary info to write one of a selection of random images.

 

Hey presto, a random iamge is written by the PHP.

 

And another Borfast passport pic pops up.

 

:D

Posted

P.S.

 

Does this not pose any security risks on a board like this.

 

Allowing people to execute scripts in a thread?

Posted

Yep, that's it. Quite easy and provides a neat effect, doesn't it? :)

 

As for security, I suppose it does pose a bit of a risc.

Still, the only thing you could exploit would be a bug in the browser's image handling code, because the script URL is inside an <img /> tag, so the browser should interpret whatever comes from there as an image and nothing else.

 

On the other hand, you can make the script send a different MIME type in the HTTP headers, tricking the browser into thinking the file is not an image but some other kind of file...

 

I don't know how a browser reacts to this because it's a contradiction: the HTML <img /> tag tells the browser that the file is an image but then the HTTP header tells it that it's another kind of file but I don't think it will crash or anything like that. It will probably just ignore the file and move on.

 

Of course there may be some exceptions, like MS' lovely Internet Explorer, which, if I'm recalling correctly, suffered from such a bug, some time ago... :D

Posted

Kerpowww!!!!!!!!

 

That would probably be IE's reaction.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...