Blog of Leonid Mamchenkov

You just stepped in a pile of posts.

Entries Tagged as 'web development'

Web technology behind Cyprus presidential elections

Posted in All, Cyprus, Technology, Web work on February 14th, 2008 · No Comments

Cyprus is preparing for the presidential elections, which will take place this coming Sunday - February 17th, 2008 - and then another Sunday after that - February 24th, 2008. Unfortunately, most of the information about the elections is in Greek, so there isn’t much point in linking to it or quoting it.

Anyway, I came across this post in Linkbox blog, which links to web sites of some candidates, as well as the main web site of the elections.  Being a curious web worker, I wanted to see which tools these web sites use, and how well they use them.  Here are my findings.

[Read more →]

→ No CommentsTags: , , , , , , , , , ,

MIME type of uploaded files in PHP

Posted in All on February 5th, 2008 · No Comments

Today I came across something that rather puzzled me at first, seemed irresponsible and such, but was cleared later, upon reading the manual.  When uploading files in PHP, variable $_FILES stores a bunch of information about each file.  One of those stored bits is the MIME type of the file.  I was puzzled with how easy it was to trick PHP into setting a wrong MIME type.  However, documentation clearly says that:

The mime type of the file, if the browser provided this information. An example would be “image/gif”. This mime type is however not checked on the PHP side and therefore don’t take its value for granted.

→ No CommentsTags: , , , , , ,

Advertisement

  • Flickr
  • Advertise at mamchenkov.net
  • Linux Weekly News