Thats an excellent idea and i think i will look into it also but i think FI-DD can come up with a quicker solution .

No no no , I used this hack to insert an image in the avatar field and fck for the article itself .
The major problem with my website is the high load caused by large images in the avatar field . this hack creates a thumbnail for the avatar .  the images i use for the article full story dont load on the main page so its an idle solution for me .

Well , I solved it pretty easly , because i use FCKeditor anyhow i created a subdirectory called avatars and underneth it /thumbs and directed the script to there so it will have an empty directory .
Great script and solution ! thanks !

Same error for me , Any idea ?