Re: IF statments -- short circuit

2002-12-24 Thread Michael Kelly
On Mon, Dec 23, 2002 at 10:35:59AM -0600, David Gilden wrote: PERL 5.6 OSX, Jaguar Goal, to check against two different passwords. I think my problem is the or is short 'circuited' is there a way for an IF statement to test for both values, so that either $secret_word or

Re: IF statments

2002-12-24 Thread Todd Wade
David Gilden [EMAIL PROTECTED] wrote in message news:r01050400-1023-E78ABED6164811D78F0D0003935B6868@[192.168.1.5]... Holiday greetings, I would like to be able to test for either of the two secret words but it seems to fail, what am I missing? Thanks Dave #!/usr/bin/perl use CGI

CGI scripts permissions

2002-12-24 Thread Octavian Rasnita
Hello all, Please tell me what file permissions should I use for a CGI script. I don't want others users from that server to view the content of my scripts because they contain passwords for MySQL databases. If I chmod 755 the scripts, the other users will also be able to see the files. Can I

Re: CGI scripts permissions

2002-12-24 Thread Rene Verharen
Hi, At 24-12-2002 18:09 +0200, Octavian Rasnita wrote: Please tell me what file permissions should I use for a CGI script. chmod 755 Can I deny other users to see the content of the cgi-bin directory (chmod 700) and chmod 755 only the files? Put a index.cgi in your cgi-bin directory that

RE: CGI scripts permissions

2002-12-24 Thread wiggins
This is going to depend somewhat on your setup, mainly what user the web server is running as and what group it might be in. You could probably set your script to be 710 if your web server is in the same group as you but not the same user as you. Or if you go to 711, then anyone can execute

Re: IF statments -- ORs short circuit too

2002-12-24 Thread Rob Richardson
--- Michael Kelly [EMAIL PROTECTED] wrote: snip Only and's short-circuit. Or's test every argument by necessity. snip Mike, In just about every Perl script that has to read from or write to a file, you will see a line similar to the following: open (MYFILE, myfile.txt) or die Can't open

Hello i need some help

2002-12-24 Thread bh-horse Salto
Hello, i have a program developed in perl but i need a script to make the program find a hidden value in a html text document. Ex: body ... input type=hidden value='6291587' name='class_id' input type=hidden value='4' name='key5' input type=hidden value='EF3854' name='11' /font/form

loadable object error

2002-12-24 Thread todd shifflett
I have a perl script which will work on my home computer, however, when I upload the script to the hosting site I recieve an error concerning a loadable object in GD.pm. I assume this is because there is some module missing on the hosting site. How do I determine what that is? Here is the

Re: CGI scripts permissions

2002-12-24 Thread Richard KHOO Guan Chen
I assume you are connecting to a database? CGIs should have 500 permission and SHOULD NOT contain the password. Instead write a perl module which return the database_handle and put that together with the other modules (/usr/lib/perl5/5.8.0/). Then just call the module in your CGI script.

Re: CGI scripts permissions

2002-12-24 Thread Octavian Rasnita
No, I don't have a problem with the web page visitors but with the other users that have accounts on that server. They could use Telnet or SSH to view the files and directories. They can see all my files if they have 755 permissions. Teddy, Teddy's Center: http://teddy.fcc.ro/ Email: [EMAIL

Re: CGI scripts permissions

2002-12-24 Thread Octavian Rasnita
Yes I know these, but ... it seems there is no solution. 1. The web server is not in the same group with me, and if it will be made to stay in the same group with me, the other users that have web pages on that server will need to be added to that group. 2. I saw that I need to give read

Re: CGI scripts permissions

2002-12-24 Thread Octavian Rasnita
I can't do that because I am not the root of that server. I am just a simple user like all other users and I don't wantthem see my files. Thank you. Teddy, Teddy's Center: http://teddy.fcc.ro/ Email: [EMAIL PROTECTED] - Original Message - From: Richard KHOO Guan Chen [EMAIL PROTECTED]

Re: CGI scripts permissions

2002-12-24 Thread Todd Wade
Octavian Rasnita [EMAIL PROTECTED] wrote in message 002901c2abd3$c17cdcb0$[EMAIL PROTECTED]">news:002901c2abd3$c17cdcb0$[EMAIL PROTECTED]... Yes I know these, but ... it seems there is no solution. 1. The web server is not in the same group with me, and if it will be made to stay in the same