Re: script working from shell, but not from browser.

2009-12-19 Thread David Taiaroa
Hi, When you run a script from shell it's probably as user 'you'. When the script runs from a browser, it will be as user 'www' or something similar, with restricted permissions. Your shell user will have more permissions, so you might want to look at file permissions. Also, you want to check

Re: script working from shell, but not from browser.

2009-12-19 Thread alexander simashin
So it is time for an easy example script. i wrote this little example maybe it will be clearly describe my problem. I did not use any files or something for no more possible problems with permissions. *#!/usr/bin/perl use CGI ; use strict; use warnings; use Data::Dumper; use CGI::Carp