in reply to More of a server question really

    Just incase the above do not help, think about what changes between the command line and the browser ... many times it is the user/environment. If you are using su to run the script as the webserver user, make sure you use su - username to get the correct environment. This is usually only an issue if the script is opening other files (modules, passwd files, cfg, etc...). Just a thought.

can't sleep clowns will eat me
-- MZSanford