A million questions could be asked, to try to figure out what's going wrong with your script.
- Is there a database?
- Are you reading from a file?
- Are you reading from a socket?
- Is the script doing anything 'weird'?
- Ect ect
Would you mind posting some code to help us out?