You'll have to describe your problem better for us to understand what's wrong.

1. Post the code in context
2. What kind of system are you running on (OS mainly)