Thank you StarLion for your answer.
Maybe my statement was not so clear, sorry for this.
Manly, what i want to do is to implement a mechanism in PHP to upload some images.
The idea is that i don't want somebody to upload, for example, PHP scripts which can be executed after and hack my website. This is the security i am talking about.
Hope i was more clear this time.