set a cookie and redirect using CGI.pm

2003-12-03 Thread Aman Raheja
Hello I want to set a user cookie and redirect to a different URL on the same domain. I searched and found alternate ways of doing it. I am looking for a way to do using CGI.pm Suggestions? Thank you Aman

Re: Databases - MS Sql Server Desktop Engine

2003-12-03 Thread Aman Raheja
Someone will correct me if I am wrong, I don't have much Windows experience. Can't ODBC be used, in what you are doing? Aman Raheja AGF Technologies http://www.agftech.com - Original Message - From: "Paul Kraus" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]&

Re: Reading files in a directory

2003-10-30 Thread Aman Raheja
didn't get you what do u need to ask? Aman Raheja Systems Analyst AGF Technologies www.agftech.com - Original Message - From: "James Parsons" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 30, 2003 1:23 PM Subject: Reading files

M$ excel creation

2003-10-07 Thread Aman Raheja
Aman Raheja Systems Analyst AGF Technologies http://www.agftech.com

Re: perl extensions

2003-06-06 Thread Aman Raheja
with extension .pl Aman Raheja - Original Message - From: "Francis Henry" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 06, 2003 10:29 AM Subject: perl extensions > Hi: > > The following is a note from a colleague of which I am skeptica

exec in loop

2003-02-10 Thread Aman Raheja
$thbFile = @$_->[1]-t.jpg; $convertedSize = @$_->[3]."x".@$_->[4]; exec("convert $imgFile -resize $convertedSize $thbFile"); } -- The loop executes only once, as the exec forks out and waits infin

Sessions un CGI and Client's OS

2003-01-11 Thread aman raheja
Hello I am using Perl/CGI on Linux (with Apache). Some users have cookies disabled in their browsers and some are using the old ones, which cause problems, along with Netscape. Anyhow, I am looking for following solutions 1. How do we know the Operating System of the Client's system? 2. Where can I

CGI sessions and Client's OS

2003-01-10 Thread aman raheja
Hello I am using Perl/CGI on Linux (with Apache). Some users have cookies disabled in their browsers and some are using the old ones, which cause problems, along with Netscape. Anyhow, I am looking for following solutions 1. How do we know the Operating System of the Client's system? 2. Where can I

rmtree

2002-05-03 Thread Aman Raheja
I have a directory "Abs" with a file "abc" in it. I am using rmtree to rm this dir as follows use File::Path; rmtree("Abs",1,1) or die "dir not del"; print "done"; The output is unlink ../htdocs/store/newpages/Abstract/abc It neither prints the die statement nor the done - ofcourse i

query about empty return value from SELECT

2002-05-02 Thread Aman Raheja
My code looks like following foreach (@abc) { $sth = $dbh->prepare("select distinct X from Y where P='$_'"); $sth->execute; $reference = $sth->fetchall_arrayref(); if(@$reference eq '') { print "$_ in empty"; } } For some values of $_ the $reference has some value and i

Re: problem sending mail

2002-04-10 Thread Aman Raheja
It didn't work either way as suggested using -t only or changing the delimiting tag with print statetent I tried to do the same on the command line and it works. I wonder what is missing here. Help is greatly appreciated Aman >From: "Aman Raheja" <[EMAIL PROTECTED]&g

problem sending mail

2002-04-10 Thread Aman Raheja
Hi all I am trying to send a mail with the following code and the last print statement doesn't print, ie, the mail is not sent. This code is called on submitting a form on the web open(MAIL, "/usr/sbin/sendmail -oi -t") || die "Can't open mail"; print MAIL <"; ---

form and frames - HELP !!!

2002-04-08 Thread Aman Raheja
Hi everyone I have a situation here. I have to do it this way, becuase that's how the framework is. When I submit a form, it is processed by abc.cgi. Now this abc.cgi has to be a frame. The main page is xyz.cgi, with a header, a left frame and output of abc.cgi, as the right part of the frame pa

system "cd .. "; ??

2002-04-05 Thread Aman Raheja
Hi All Why can't I move to the parent directory using system "cd .."; Actually cd command doesn't work at all with system !!! why ? Though I can do so by chdir(".."); Is there a way to physically move to another dir, for eg. [aman@aman /usr/home/aman]$./pdir.pl [aman@aman /usr/home]$ Thanks in

Re: Array question

2002-04-01 Thread Aman Raheja
Here's my solution. There will be shorter ways. I am new to perl, so this is how did it. At the prompt do $array-prob.pl #!/usr/bin/perl #File name : array-prob.pl my @arr; while(<>) { chomp($_); $field{$_}++; print "$_ $field{$_}\n"; my $set = 0; my $r